24
24
from ...._base_client import (
25
25
make_request_options ,
26
26
)
27
- from ....types .zones .settings import ZoneSettingAlwaysOnline , always_online_edit_params
27
+ from ....types .zones .settings import AlwaysOnline , always_online_edit_params
28
28
29
- __all__ = ["AlwaysOnline " , "AsyncAlwaysOnline " ]
29
+ __all__ = ["AlwaysOnlineResource " , "AsyncAlwaysOnlineResource " ]
30
30
31
31
32
- class AlwaysOnline (SyncAPIResource ):
32
+ class AlwaysOnlineResource (SyncAPIResource ):
33
33
@cached_property
34
- def with_raw_response (self ) -> AlwaysOnlineWithRawResponse :
35
- return AlwaysOnlineWithRawResponse (self )
34
+ def with_raw_response (self ) -> AlwaysOnlineResourceWithRawResponse :
35
+ return AlwaysOnlineResourceWithRawResponse (self )
36
36
37
37
@cached_property
38
- def with_streaming_response (self ) -> AlwaysOnlineWithStreamingResponse :
39
- return AlwaysOnlineWithStreamingResponse (self )
38
+ def with_streaming_response (self ) -> AlwaysOnlineResourceWithStreamingResponse :
39
+ return AlwaysOnlineResourceWithStreamingResponse (self )
40
40
41
41
def edit (
42
42
self ,
@@ -49,7 +49,7 @@ def edit(
49
49
extra_query : Query | None = None ,
50
50
extra_body : Body | None = None ,
51
51
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
52
- ) -> Optional [ZoneSettingAlwaysOnline ]:
52
+ ) -> Optional [AlwaysOnline ]:
53
53
"""
54
54
When enabled, Cloudflare serves limited copies of web pages available from the
55
55
[Internet Archive's Wayback Machine](https://archive.org/web/) if your server is
@@ -82,7 +82,7 @@ def edit(
82
82
timeout = timeout ,
83
83
post_parser = ResultWrapper ._unwrapper ,
84
84
),
85
- cast_to = cast (Type [Optional [ZoneSettingAlwaysOnline ]], ResultWrapper [ZoneSettingAlwaysOnline ]),
85
+ cast_to = cast (Type [Optional [AlwaysOnline ]], ResultWrapper [AlwaysOnline ]),
86
86
)
87
87
88
88
def get (
@@ -95,7 +95,7 @@ def get(
95
95
extra_query : Query | None = None ,
96
96
extra_body : Body | None = None ,
97
97
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
98
- ) -> Optional [ZoneSettingAlwaysOnline ]:
98
+ ) -> Optional [AlwaysOnline ]:
99
99
"""
100
100
When enabled, Cloudflare serves limited copies of web pages available from the
101
101
[Internet Archive's Wayback Machine](https://archive.org/web/) if your server is
@@ -125,18 +125,18 @@ def get(
125
125
timeout = timeout ,
126
126
post_parser = ResultWrapper ._unwrapper ,
127
127
),
128
- cast_to = cast (Type [Optional [ZoneSettingAlwaysOnline ]], ResultWrapper [ZoneSettingAlwaysOnline ]),
128
+ cast_to = cast (Type [Optional [AlwaysOnline ]], ResultWrapper [AlwaysOnline ]),
129
129
)
130
130
131
131
132
- class AsyncAlwaysOnline (AsyncAPIResource ):
132
+ class AsyncAlwaysOnlineResource (AsyncAPIResource ):
133
133
@cached_property
134
- def with_raw_response (self ) -> AsyncAlwaysOnlineWithRawResponse :
135
- return AsyncAlwaysOnlineWithRawResponse (self )
134
+ def with_raw_response (self ) -> AsyncAlwaysOnlineResourceWithRawResponse :
135
+ return AsyncAlwaysOnlineResourceWithRawResponse (self )
136
136
137
137
@cached_property
138
- def with_streaming_response (self ) -> AsyncAlwaysOnlineWithStreamingResponse :
139
- return AsyncAlwaysOnlineWithStreamingResponse (self )
138
+ def with_streaming_response (self ) -> AsyncAlwaysOnlineResourceWithStreamingResponse :
139
+ return AsyncAlwaysOnlineResourceWithStreamingResponse (self )
140
140
141
141
async def edit (
142
142
self ,
@@ -149,7 +149,7 @@ async def edit(
149
149
extra_query : Query | None = None ,
150
150
extra_body : Body | None = None ,
151
151
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
152
- ) -> Optional [ZoneSettingAlwaysOnline ]:
152
+ ) -> Optional [AlwaysOnline ]:
153
153
"""
154
154
When enabled, Cloudflare serves limited copies of web pages available from the
155
155
[Internet Archive's Wayback Machine](https://archive.org/web/) if your server is
@@ -182,7 +182,7 @@ async def edit(
182
182
timeout = timeout ,
183
183
post_parser = ResultWrapper ._unwrapper ,
184
184
),
185
- cast_to = cast (Type [Optional [ZoneSettingAlwaysOnline ]], ResultWrapper [ZoneSettingAlwaysOnline ]),
185
+ cast_to = cast (Type [Optional [AlwaysOnline ]], ResultWrapper [AlwaysOnline ]),
186
186
)
187
187
188
188
async def get (
@@ -195,7 +195,7 @@ async def get(
195
195
extra_query : Query | None = None ,
196
196
extra_body : Body | None = None ,
197
197
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
198
- ) -> Optional [ZoneSettingAlwaysOnline ]:
198
+ ) -> Optional [AlwaysOnline ]:
199
199
"""
200
200
When enabled, Cloudflare serves limited copies of web pages available from the
201
201
[Internet Archive's Wayback Machine](https://archive.org/web/) if your server is
@@ -225,12 +225,12 @@ async def get(
225
225
timeout = timeout ,
226
226
post_parser = ResultWrapper ._unwrapper ,
227
227
),
228
- cast_to = cast (Type [Optional [ZoneSettingAlwaysOnline ]], ResultWrapper [ZoneSettingAlwaysOnline ]),
228
+ cast_to = cast (Type [Optional [AlwaysOnline ]], ResultWrapper [AlwaysOnline ]),
229
229
)
230
230
231
231
232
- class AlwaysOnlineWithRawResponse :
233
- def __init__ (self , always_online : AlwaysOnline ) -> None :
232
+ class AlwaysOnlineResourceWithRawResponse :
233
+ def __init__ (self , always_online : AlwaysOnlineResource ) -> None :
234
234
self ._always_online = always_online
235
235
236
236
self .edit = to_raw_response_wrapper (
@@ -241,8 +241,8 @@ def __init__(self, always_online: AlwaysOnline) -> None:
241
241
)
242
242
243
243
244
- class AsyncAlwaysOnlineWithRawResponse :
245
- def __init__ (self , always_online : AsyncAlwaysOnline ) -> None :
244
+ class AsyncAlwaysOnlineResourceWithRawResponse :
245
+ def __init__ (self , always_online : AsyncAlwaysOnlineResource ) -> None :
246
246
self ._always_online = always_online
247
247
248
248
self .edit = async_to_raw_response_wrapper (
@@ -253,8 +253,8 @@ def __init__(self, always_online: AsyncAlwaysOnline) -> None:
253
253
)
254
254
255
255
256
- class AlwaysOnlineWithStreamingResponse :
257
- def __init__ (self , always_online : AlwaysOnline ) -> None :
256
+ class AlwaysOnlineResourceWithStreamingResponse :
257
+ def __init__ (self , always_online : AlwaysOnlineResource ) -> None :
258
258
self ._always_online = always_online
259
259
260
260
self .edit = to_streamed_response_wrapper (
@@ -265,8 +265,8 @@ def __init__(self, always_online: AlwaysOnline) -> None:
265
265
)
266
266
267
267
268
- class AsyncAlwaysOnlineWithStreamingResponse :
269
- def __init__ (self , always_online : AsyncAlwaysOnline ) -> None :
268
+ class AsyncAlwaysOnlineResourceWithStreamingResponse :
269
+ def __init__ (self , always_online : AsyncAlwaysOnlineResource ) -> None :
270
270
self ._always_online = always_online
271
271
272
272
self .edit = async_to_streamed_response_wrapper (
0 commit comments