Skip to content

Commit 1c53f03

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: update via SDK Studio (#113)
1 parent 3870130 commit 1c53f03

File tree

5 files changed

+70
-70
lines changed

5 files changed

+70
-70
lines changed

api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ Methods:
23522352

23532353
# SecondaryDNS
23542354

2355-
## ForceAxfrs
2355+
## ForceAXFR
23562356

23572357
Types:
23582358

@@ -2362,7 +2362,7 @@ from cloudflare.types.secondary_dns import SecondaryDNSForceResult
23622362

23632363
Methods:
23642364

2365-
- <code title="post /zones/{zone_id}/secondary_dns/force_axfr">client.secondary_dns.force_axfrs.<a href="./src/cloudflare/resources/secondary_dns/force_axfrs.py">create</a>(\*, zone_id) -> <a href="./src/cloudflare/types/secondary_dns/secondary_dns_force_result.py">str</a></code>
2365+
- <code title="post /zones/{zone_id}/secondary_dns/force_axfr">client.secondary_dns.force_axfr.<a href="./src/cloudflare/resources/secondary_dns/force_axfr.py">create</a>(\*, zone_id) -> <a href="./src/cloudflare/types/secondary_dns/secondary_dns_force_result.py">str</a></code>
23662366

23672367
## Incoming
23682368

src/cloudflare/resources/secondary_dns/__init__.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
OutgoingWithStreamingResponse,
4141
AsyncOutgoingWithStreamingResponse,
4242
)
43-
from .force_axfrs import (
44-
ForceAxfrs,
45-
AsyncForceAxfrs,
46-
ForceAxfrsWithRawResponse,
47-
AsyncForceAxfrsWithRawResponse,
48-
ForceAxfrsWithStreamingResponse,
49-
AsyncForceAxfrsWithStreamingResponse,
43+
from .force_axfr import (
44+
ForceAXFR,
45+
AsyncForceAXFR,
46+
ForceAXFRWithRawResponse,
47+
AsyncForceAXFRWithRawResponse,
48+
ForceAXFRWithStreamingResponse,
49+
AsyncForceAXFRWithStreamingResponse,
5050
)
5151
from .secondary_dns import (
5252
SecondaryDNS,
@@ -58,12 +58,12 @@
5858
)
5959

6060
__all__ = [
61-
"ForceAxfrs",
62-
"AsyncForceAxfrs",
63-
"ForceAxfrsWithRawResponse",
64-
"AsyncForceAxfrsWithRawResponse",
65-
"ForceAxfrsWithStreamingResponse",
66-
"AsyncForceAxfrsWithStreamingResponse",
61+
"ForceAXFR",
62+
"AsyncForceAXFR",
63+
"ForceAXFRWithRawResponse",
64+
"AsyncForceAXFRWithRawResponse",
65+
"ForceAXFRWithStreamingResponse",
66+
"AsyncForceAXFRWithStreamingResponse",
6767
"Incoming",
6868
"AsyncIncoming",
6969
"IncomingWithRawResponse",

src/cloudflare/resources/secondary_dns/force_axfrs.py src/cloudflare/resources/secondary_dns/force_axfr.py

+27-27
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
make_request_options,
2121
)
2222

23-
__all__ = ["ForceAxfrs", "AsyncForceAxfrs"]
23+
__all__ = ["ForceAXFR", "AsyncForceAXFR"]
2424

2525

26-
class ForceAxfrs(SyncAPIResource):
26+
class ForceAXFR(SyncAPIResource):
2727
@cached_property
28-
def with_raw_response(self) -> ForceAxfrsWithRawResponse:
29-
return ForceAxfrsWithRawResponse(self)
28+
def with_raw_response(self) -> ForceAXFRWithRawResponse:
29+
return ForceAXFRWithRawResponse(self)
3030

3131
@cached_property
32-
def with_streaming_response(self) -> ForceAxfrsWithStreamingResponse:
33-
return ForceAxfrsWithStreamingResponse(self)
32+
def with_streaming_response(self) -> ForceAXFRWithStreamingResponse:
33+
return ForceAXFRWithStreamingResponse(self)
3434

3535
def create(
3636
self,
@@ -68,14 +68,14 @@ def create(
6868
)
6969

7070

71-
class AsyncForceAxfrs(AsyncAPIResource):
71+
class AsyncForceAXFR(AsyncAPIResource):
7272
@cached_property
73-
def with_raw_response(self) -> AsyncForceAxfrsWithRawResponse:
74-
return AsyncForceAxfrsWithRawResponse(self)
73+
def with_raw_response(self) -> AsyncForceAXFRWithRawResponse:
74+
return AsyncForceAXFRWithRawResponse(self)
7575

7676
@cached_property
77-
def with_streaming_response(self) -> AsyncForceAxfrsWithStreamingResponse:
78-
return AsyncForceAxfrsWithStreamingResponse(self)
77+
def with_streaming_response(self) -> AsyncForceAXFRWithStreamingResponse:
78+
return AsyncForceAXFRWithStreamingResponse(self)
7979

8080
async def create(
8181
self,
@@ -113,37 +113,37 @@ async def create(
113113
)
114114

115115

116-
class ForceAxfrsWithRawResponse:
117-
def __init__(self, force_axfrs: ForceAxfrs) -> None:
118-
self._force_axfrs = force_axfrs
116+
class ForceAXFRWithRawResponse:
117+
def __init__(self, force_axfr: ForceAXFR) -> None:
118+
self._force_axfr = force_axfr
119119

120120
self.create = to_raw_response_wrapper(
121-
force_axfrs.create,
121+
force_axfr.create,
122122
)
123123

124124

125-
class AsyncForceAxfrsWithRawResponse:
126-
def __init__(self, force_axfrs: AsyncForceAxfrs) -> None:
127-
self._force_axfrs = force_axfrs
125+
class AsyncForceAXFRWithRawResponse:
126+
def __init__(self, force_axfr: AsyncForceAXFR) -> None:
127+
self._force_axfr = force_axfr
128128

129129
self.create = async_to_raw_response_wrapper(
130-
force_axfrs.create,
130+
force_axfr.create,
131131
)
132132

133133

134-
class ForceAxfrsWithStreamingResponse:
135-
def __init__(self, force_axfrs: ForceAxfrs) -> None:
136-
self._force_axfrs = force_axfrs
134+
class ForceAXFRWithStreamingResponse:
135+
def __init__(self, force_axfr: ForceAXFR) -> None:
136+
self._force_axfr = force_axfr
137137

138138
self.create = to_streamed_response_wrapper(
139-
force_axfrs.create,
139+
force_axfr.create,
140140
)
141141

142142

143-
class AsyncForceAxfrsWithStreamingResponse:
144-
def __init__(self, force_axfrs: AsyncForceAxfrs) -> None:
145-
self._force_axfrs = force_axfrs
143+
class AsyncForceAXFRWithStreamingResponse:
144+
def __init__(self, force_axfr: AsyncForceAXFR) -> None:
145+
self._force_axfr = force_axfr
146146

147147
self.create = async_to_streamed_response_wrapper(
148-
force_axfrs.create,
148+
force_axfr.create,
149149
)

src/cloudflare/resources/secondary_dns/secondary_dns.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@
4343
AsyncOutgoingWithStreamingResponse,
4444
)
4545
from ..._compat import cached_property
46-
from ..._resource import SyncAPIResource, AsyncAPIResource
47-
from .force_axfrs import (
48-
ForceAxfrs,
49-
AsyncForceAxfrs,
50-
ForceAxfrsWithRawResponse,
51-
AsyncForceAxfrsWithRawResponse,
52-
ForceAxfrsWithStreamingResponse,
53-
AsyncForceAxfrsWithStreamingResponse,
46+
from .force_axfr import (
47+
ForceAXFR,
48+
AsyncForceAXFR,
49+
ForceAXFRWithRawResponse,
50+
AsyncForceAXFRWithRawResponse,
51+
ForceAXFRWithStreamingResponse,
52+
AsyncForceAXFRWithStreamingResponse,
5453
)
54+
from ..._resource import SyncAPIResource, AsyncAPIResource
5555
from .outgoing.outgoing import Outgoing, AsyncOutgoing
5656

5757
__all__ = ["SecondaryDNS", "AsyncSecondaryDNS"]
5858

5959

6060
class SecondaryDNS(SyncAPIResource):
6161
@cached_property
62-
def force_axfrs(self) -> ForceAxfrs:
63-
return ForceAxfrs(self._client)
62+
def force_axfr(self) -> ForceAXFR:
63+
return ForceAXFR(self._client)
6464

6565
@cached_property
6666
def incoming(self) -> Incoming:
@@ -93,8 +93,8 @@ def with_streaming_response(self) -> SecondaryDNSWithStreamingResponse:
9393

9494
class AsyncSecondaryDNS(AsyncAPIResource):
9595
@cached_property
96-
def force_axfrs(self) -> AsyncForceAxfrs:
97-
return AsyncForceAxfrs(self._client)
96+
def force_axfr(self) -> AsyncForceAXFR:
97+
return AsyncForceAXFR(self._client)
9898

9999
@cached_property
100100
def incoming(self) -> AsyncIncoming:
@@ -130,8 +130,8 @@ def __init__(self, secondary_dns: SecondaryDNS) -> None:
130130
self._secondary_dns = secondary_dns
131131

132132
@cached_property
133-
def force_axfrs(self) -> ForceAxfrsWithRawResponse:
134-
return ForceAxfrsWithRawResponse(self._secondary_dns.force_axfrs)
133+
def force_axfr(self) -> ForceAXFRWithRawResponse:
134+
return ForceAXFRWithRawResponse(self._secondary_dns.force_axfr)
135135

136136
@cached_property
137137
def incoming(self) -> IncomingWithRawResponse:
@@ -159,8 +159,8 @@ def __init__(self, secondary_dns: AsyncSecondaryDNS) -> None:
159159
self._secondary_dns = secondary_dns
160160

161161
@cached_property
162-
def force_axfrs(self) -> AsyncForceAxfrsWithRawResponse:
163-
return AsyncForceAxfrsWithRawResponse(self._secondary_dns.force_axfrs)
162+
def force_axfr(self) -> AsyncForceAXFRWithRawResponse:
163+
return AsyncForceAXFRWithRawResponse(self._secondary_dns.force_axfr)
164164

165165
@cached_property
166166
def incoming(self) -> AsyncIncomingWithRawResponse:
@@ -188,8 +188,8 @@ def __init__(self, secondary_dns: SecondaryDNS) -> None:
188188
self._secondary_dns = secondary_dns
189189

190190
@cached_property
191-
def force_axfrs(self) -> ForceAxfrsWithStreamingResponse:
192-
return ForceAxfrsWithStreamingResponse(self._secondary_dns.force_axfrs)
191+
def force_axfr(self) -> ForceAXFRWithStreamingResponse:
192+
return ForceAXFRWithStreamingResponse(self._secondary_dns.force_axfr)
193193

194194
@cached_property
195195
def incoming(self) -> IncomingWithStreamingResponse:
@@ -217,8 +217,8 @@ def __init__(self, secondary_dns: AsyncSecondaryDNS) -> None:
217217
self._secondary_dns = secondary_dns
218218

219219
@cached_property
220-
def force_axfrs(self) -> AsyncForceAxfrsWithStreamingResponse:
221-
return AsyncForceAxfrsWithStreamingResponse(self._secondary_dns.force_axfrs)
220+
def force_axfr(self) -> AsyncForceAXFRWithStreamingResponse:
221+
return AsyncForceAXFRWithStreamingResponse(self._secondary_dns.force_axfr)
222222

223223
@cached_property
224224
def incoming(self) -> AsyncIncomingWithStreamingResponse:

tests/api_resources/secondary_dns/test_force_axfrs.py tests/api_resources/secondary_dns/test_force_axfr.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1414

1515

16-
class TestForceAxfrs:
16+
class TestForceAXFR:
1717
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1818

1919
@pytest.mark.skip()
2020
@parametrize
2121
def test_method_create(self, client: Cloudflare) -> None:
22-
force_axfr = client.secondary_dns.force_axfrs.create(
22+
force_axfr = client.secondary_dns.force_axfr.create(
2323
zone_id="269d8f4853475ca241c4e730be286b20",
2424
)
2525
assert_matches_type(str, force_axfr, path=["response"])
2626

2727
@pytest.mark.skip()
2828
@parametrize
2929
def test_raw_response_create(self, client: Cloudflare) -> None:
30-
response = client.secondary_dns.force_axfrs.with_raw_response.create(
30+
response = client.secondary_dns.force_axfr.with_raw_response.create(
3131
zone_id="269d8f4853475ca241c4e730be286b20",
3232
)
3333

@@ -39,7 +39,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
3939
@pytest.mark.skip()
4040
@parametrize
4141
def test_streaming_response_create(self, client: Cloudflare) -> None:
42-
with client.secondary_dns.force_axfrs.with_streaming_response.create(
42+
with client.secondary_dns.force_axfr.with_streaming_response.create(
4343
zone_id="269d8f4853475ca241c4e730be286b20",
4444
) as response:
4545
assert not response.is_closed
@@ -51,21 +51,21 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
5151
assert cast(Any, response.is_closed) is True
5252

5353

54-
class TestAsyncForceAxfrs:
54+
class TestAsyncForceAXFR:
5555
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
5656

5757
@pytest.mark.skip()
5858
@parametrize
5959
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
60-
force_axfr = await async_client.secondary_dns.force_axfrs.create(
60+
force_axfr = await async_client.secondary_dns.force_axfr.create(
6161
zone_id="269d8f4853475ca241c4e730be286b20",
6262
)
6363
assert_matches_type(str, force_axfr, path=["response"])
6464

6565
@pytest.mark.skip()
6666
@parametrize
6767
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
68-
response = await async_client.secondary_dns.force_axfrs.with_raw_response.create(
68+
response = await async_client.secondary_dns.force_axfr.with_raw_response.create(
6969
zone_id="269d8f4853475ca241c4e730be286b20",
7070
)
7171

@@ -77,7 +77,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
7777
@pytest.mark.skip()
7878
@parametrize
7979
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
80-
async with async_client.secondary_dns.force_axfrs.with_streaming_response.create(
80+
async with async_client.secondary_dns.force_axfr.with_streaming_response.create(
8181
zone_id="269d8f4853475ca241c4e730be286b20",
8282
) as response:
8383
assert not response.is_closed

0 commit comments

Comments
 (0)