Skip to content

Commit fe49636

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: update via SDK Studio (#111)
1 parent 04b0894 commit fe49636

File tree

7 files changed

+209
-209
lines changed

7 files changed

+209
-209
lines changed

api.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -5595,7 +5595,7 @@ Methods:
55955595
- <code title="get /accounts/{account_id}/dlp/profiles">client.zero_trust.dlp.profiles.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profile_list_response.py">Optional</a></code>
55965596
- <code title="get /accounts/{account_id}/dlp/profiles/{profile_id}">client.zero_trust.dlp.profiles.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profile_get_response.py">ProfileGetResponse</a></code>
55975597

5598-
#### Customs
5598+
#### Custom
55995599

56005600
Types:
56015601

@@ -5609,12 +5609,12 @@ from cloudflare.types.zero_trust.dlp.profiles import (
56095609

56105610
Methods:
56115611

5612-
- <code title="post /accounts/{account_id}/dlp/profiles/custom">client.zero_trust.dlp.profiles.customs.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/customs.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dlp/profiles/custom_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/custom_create_response.py">Optional</a></code>
5613-
- <code title="put /accounts/{account_id}/dlp/profiles/custom/{profile_id}">client.zero_trust.dlp.profiles.customs.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/customs.py">update</a>(profile_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py">DLPCustomProfile</a></code>
5614-
- <code title="delete /accounts/{account_id}/dlp/profiles/custom/{profile_id}">client.zero_trust.dlp.profiles.customs.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/customs.py">delete</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py">CustomDeleteResponse</a></code>
5615-
- <code title="get /accounts/{account_id}/dlp/profiles/custom/{profile_id}">client.zero_trust.dlp.profiles.customs.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/customs.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py">DLPCustomProfile</a></code>
5612+
- <code title="post /accounts/{account_id}/dlp/profiles/custom">client.zero_trust.dlp.profiles.custom.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/custom.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dlp/profiles/custom_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/custom_create_response.py">Optional</a></code>
5613+
- <code title="put /accounts/{account_id}/dlp/profiles/custom/{profile_id}">client.zero_trust.dlp.profiles.custom.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/custom.py">update</a>(profile_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py">DLPCustomProfile</a></code>
5614+
- <code title="delete /accounts/{account_id}/dlp/profiles/custom/{profile_id}">client.zero_trust.dlp.profiles.custom.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/custom.py">delete</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py">CustomDeleteResponse</a></code>
5615+
- <code title="get /accounts/{account_id}/dlp/profiles/custom/{profile_id}">client.zero_trust.dlp.profiles.custom.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/custom.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py">DLPCustomProfile</a></code>
56165616

5617-
#### Predefineds
5617+
#### Predefined
56185618

56195619
Types:
56205620

@@ -5624,8 +5624,8 @@ from cloudflare.types.zero_trust.dlp.profiles import DLPPredefinedProfile
56245624

56255625
Methods:
56265626

5627-
- <code title="put /accounts/{account_id}/dlp/profiles/predefined/{profile_id}">client.zero_trust.dlp.profiles.predefineds.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/predefineds.py">update</a>(profile_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dlp/profiles/predefined_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py">DLPPredefinedProfile</a></code>
5628-
- <code title="get /accounts/{account_id}/dlp/profiles/predefined/{profile_id}">client.zero_trust.dlp.profiles.predefineds.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/predefineds.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py">DLPPredefinedProfile</a></code>
5627+
- <code title="put /accounts/{account_id}/dlp/profiles/predefined/{profile_id}">client.zero_trust.dlp.profiles.predefined.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py">update</a>(profile_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dlp/profiles/predefined_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py">DLPPredefinedProfile</a></code>
5628+
- <code title="get /accounts/{account_id}/dlp/profiles/predefined/{profile_id}">client.zero_trust.dlp.profiles.predefined.<a href="./src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py">DLPPredefinedProfile</a></code>
56295629

56305630
## Gateway
56315631

src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from .customs import (
4-
Customs,
5-
AsyncCustoms,
6-
CustomsWithRawResponse,
7-
AsyncCustomsWithRawResponse,
8-
CustomsWithStreamingResponse,
9-
AsyncCustomsWithStreamingResponse,
3+
from .custom import (
4+
Custom,
5+
AsyncCustom,
6+
CustomWithRawResponse,
7+
AsyncCustomWithRawResponse,
8+
CustomWithStreamingResponse,
9+
AsyncCustomWithStreamingResponse,
1010
)
1111
from .profiles import (
1212
Profiles,
@@ -16,28 +16,28 @@
1616
ProfilesWithStreamingResponse,
1717
AsyncProfilesWithStreamingResponse,
1818
)
19-
from .predefineds import (
20-
Predefineds,
21-
AsyncPredefineds,
22-
PredefinedsWithRawResponse,
23-
AsyncPredefinedsWithRawResponse,
24-
PredefinedsWithStreamingResponse,
25-
AsyncPredefinedsWithStreamingResponse,
19+
from .predefined import (
20+
Predefined,
21+
AsyncPredefined,
22+
PredefinedWithRawResponse,
23+
AsyncPredefinedWithRawResponse,
24+
PredefinedWithStreamingResponse,
25+
AsyncPredefinedWithStreamingResponse,
2626
)
2727

2828
__all__ = [
29-
"Customs",
30-
"AsyncCustoms",
31-
"CustomsWithRawResponse",
32-
"AsyncCustomsWithRawResponse",
33-
"CustomsWithStreamingResponse",
34-
"AsyncCustomsWithStreamingResponse",
35-
"Predefineds",
36-
"AsyncPredefineds",
37-
"PredefinedsWithRawResponse",
38-
"AsyncPredefinedsWithRawResponse",
39-
"PredefinedsWithStreamingResponse",
40-
"AsyncPredefinedsWithStreamingResponse",
29+
"Custom",
30+
"AsyncCustom",
31+
"CustomWithRawResponse",
32+
"AsyncCustomWithRawResponse",
33+
"CustomWithStreamingResponse",
34+
"AsyncCustomWithStreamingResponse",
35+
"Predefined",
36+
"AsyncPredefined",
37+
"PredefinedWithRawResponse",
38+
"AsyncPredefinedWithRawResponse",
39+
"PredefinedWithStreamingResponse",
40+
"AsyncPredefinedWithStreamingResponse",
4141
"Profiles",
4242
"AsyncProfiles",
4343
"ProfilesWithRawResponse",

src/cloudflare/resources/zero_trust/dlp/profiles/customs.py src/cloudflare/resources/zero_trust/dlp/profiles/custom.py

+39-39
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
custom_update_params,
3232
)
3333

34-
__all__ = ["Customs", "AsyncCustoms"]
34+
__all__ = ["Custom", "AsyncCustom"]
3535

3636

37-
class Customs(SyncAPIResource):
37+
class Custom(SyncAPIResource):
3838
@cached_property
39-
def with_raw_response(self) -> CustomsWithRawResponse:
40-
return CustomsWithRawResponse(self)
39+
def with_raw_response(self) -> CustomWithRawResponse:
40+
return CustomWithRawResponse(self)
4141

4242
@cached_property
43-
def with_streaming_response(self) -> CustomsWithStreamingResponse:
44-
return CustomsWithStreamingResponse(self)
43+
def with_streaming_response(self) -> CustomWithStreamingResponse:
44+
return CustomWithStreamingResponse(self)
4545

4646
def create(
4747
self,
@@ -251,14 +251,14 @@ def get(
251251
)
252252

253253

254-
class AsyncCustoms(AsyncAPIResource):
254+
class AsyncCustom(AsyncAPIResource):
255255
@cached_property
256-
def with_raw_response(self) -> AsyncCustomsWithRawResponse:
257-
return AsyncCustomsWithRawResponse(self)
256+
def with_raw_response(self) -> AsyncCustomWithRawResponse:
257+
return AsyncCustomWithRawResponse(self)
258258

259259
@cached_property
260-
def with_streaming_response(self) -> AsyncCustomsWithStreamingResponse:
261-
return AsyncCustomsWithStreamingResponse(self)
260+
def with_streaming_response(self) -> AsyncCustomWithStreamingResponse:
261+
return AsyncCustomWithStreamingResponse(self)
262262

263263
async def create(
264264
self,
@@ -468,73 +468,73 @@ async def get(
468468
)
469469

470470

471-
class CustomsWithRawResponse:
472-
def __init__(self, customs: Customs) -> None:
473-
self._customs = customs
471+
class CustomWithRawResponse:
472+
def __init__(self, custom: Custom) -> None:
473+
self._custom = custom
474474

475475
self.create = to_raw_response_wrapper(
476-
customs.create,
476+
custom.create,
477477
)
478478
self.update = to_raw_response_wrapper(
479-
customs.update,
479+
custom.update,
480480
)
481481
self.delete = to_raw_response_wrapper(
482-
customs.delete,
482+
custom.delete,
483483
)
484484
self.get = to_raw_response_wrapper(
485-
customs.get,
485+
custom.get,
486486
)
487487

488488

489-
class AsyncCustomsWithRawResponse:
490-
def __init__(self, customs: AsyncCustoms) -> None:
491-
self._customs = customs
489+
class AsyncCustomWithRawResponse:
490+
def __init__(self, custom: AsyncCustom) -> None:
491+
self._custom = custom
492492

493493
self.create = async_to_raw_response_wrapper(
494-
customs.create,
494+
custom.create,
495495
)
496496
self.update = async_to_raw_response_wrapper(
497-
customs.update,
497+
custom.update,
498498
)
499499
self.delete = async_to_raw_response_wrapper(
500-
customs.delete,
500+
custom.delete,
501501
)
502502
self.get = async_to_raw_response_wrapper(
503-
customs.get,
503+
custom.get,
504504
)
505505

506506

507-
class CustomsWithStreamingResponse:
508-
def __init__(self, customs: Customs) -> None:
509-
self._customs = customs
507+
class CustomWithStreamingResponse:
508+
def __init__(self, custom: Custom) -> None:
509+
self._custom = custom
510510

511511
self.create = to_streamed_response_wrapper(
512-
customs.create,
512+
custom.create,
513513
)
514514
self.update = to_streamed_response_wrapper(
515-
customs.update,
515+
custom.update,
516516
)
517517
self.delete = to_streamed_response_wrapper(
518-
customs.delete,
518+
custom.delete,
519519
)
520520
self.get = to_streamed_response_wrapper(
521-
customs.get,
521+
custom.get,
522522
)
523523

524524

525-
class AsyncCustomsWithStreamingResponse:
526-
def __init__(self, customs: AsyncCustoms) -> None:
527-
self._customs = customs
525+
class AsyncCustomWithStreamingResponse:
526+
def __init__(self, custom: AsyncCustom) -> None:
527+
self._custom = custom
528528

529529
self.create = async_to_streamed_response_wrapper(
530-
customs.create,
530+
custom.create,
531531
)
532532
self.update = async_to_streamed_response_wrapper(
533-
customs.update,
533+
custom.update,
534534
)
535535
self.delete = async_to_streamed_response_wrapper(
536-
customs.delete,
536+
custom.delete,
537537
)
538538
self.get = async_to_streamed_response_wrapper(
539-
customs.get,
539+
custom.get,
540540
)

src/cloudflare/resources/zero_trust/dlp/profiles/predefineds.py src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py

+31-31
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
)
2626
from .....types.zero_trust.dlp.profiles import DLPPredefinedProfile, predefined_update_params
2727

28-
__all__ = ["Predefineds", "AsyncPredefineds"]
28+
__all__ = ["Predefined", "AsyncPredefined"]
2929

3030

31-
class Predefineds(SyncAPIResource):
31+
class Predefined(SyncAPIResource):
3232
@cached_property
33-
def with_raw_response(self) -> PredefinedsWithRawResponse:
34-
return PredefinedsWithRawResponse(self)
33+
def with_raw_response(self) -> PredefinedWithRawResponse:
34+
return PredefinedWithRawResponse(self)
3535

3636
@cached_property
37-
def with_streaming_response(self) -> PredefinedsWithStreamingResponse:
38-
return PredefinedsWithStreamingResponse(self)
37+
def with_streaming_response(self) -> PredefinedWithStreamingResponse:
38+
return PredefinedWithStreamingResponse(self)
3939

4040
def update(
4141
self,
@@ -141,14 +141,14 @@ def get(
141141
)
142142

143143

144-
class AsyncPredefineds(AsyncAPIResource):
144+
class AsyncPredefined(AsyncAPIResource):
145145
@cached_property
146-
def with_raw_response(self) -> AsyncPredefinedsWithRawResponse:
147-
return AsyncPredefinedsWithRawResponse(self)
146+
def with_raw_response(self) -> AsyncPredefinedWithRawResponse:
147+
return AsyncPredefinedWithRawResponse(self)
148148

149149
@cached_property
150-
def with_streaming_response(self) -> AsyncPredefinedsWithStreamingResponse:
151-
return AsyncPredefinedsWithStreamingResponse(self)
150+
def with_streaming_response(self) -> AsyncPredefinedWithStreamingResponse:
151+
return AsyncPredefinedWithStreamingResponse(self)
152152

153153
async def update(
154154
self,
@@ -254,49 +254,49 @@ async def get(
254254
)
255255

256256

257-
class PredefinedsWithRawResponse:
258-
def __init__(self, predefineds: Predefineds) -> None:
259-
self._predefineds = predefineds
257+
class PredefinedWithRawResponse:
258+
def __init__(self, predefined: Predefined) -> None:
259+
self._predefined = predefined
260260

261261
self.update = to_raw_response_wrapper(
262-
predefineds.update,
262+
predefined.update,
263263
)
264264
self.get = to_raw_response_wrapper(
265-
predefineds.get,
265+
predefined.get,
266266
)
267267

268268

269-
class AsyncPredefinedsWithRawResponse:
270-
def __init__(self, predefineds: AsyncPredefineds) -> None:
271-
self._predefineds = predefineds
269+
class AsyncPredefinedWithRawResponse:
270+
def __init__(self, predefined: AsyncPredefined) -> None:
271+
self._predefined = predefined
272272

273273
self.update = async_to_raw_response_wrapper(
274-
predefineds.update,
274+
predefined.update,
275275
)
276276
self.get = async_to_raw_response_wrapper(
277-
predefineds.get,
277+
predefined.get,
278278
)
279279

280280

281-
class PredefinedsWithStreamingResponse:
282-
def __init__(self, predefineds: Predefineds) -> None:
283-
self._predefineds = predefineds
281+
class PredefinedWithStreamingResponse:
282+
def __init__(self, predefined: Predefined) -> None:
283+
self._predefined = predefined
284284

285285
self.update = to_streamed_response_wrapper(
286-
predefineds.update,
286+
predefined.update,
287287
)
288288
self.get = to_streamed_response_wrapper(
289-
predefineds.get,
289+
predefined.get,
290290
)
291291

292292

293-
class AsyncPredefinedsWithStreamingResponse:
294-
def __init__(self, predefineds: AsyncPredefineds) -> None:
295-
self._predefineds = predefineds
293+
class AsyncPredefinedWithStreamingResponse:
294+
def __init__(self, predefined: AsyncPredefined) -> None:
295+
self._predefined = predefined
296296

297297
self.update = async_to_streamed_response_wrapper(
298-
predefineds.update,
298+
predefined.update,
299299
)
300300
self.get = async_to_streamed_response_wrapper(
301-
predefineds.get,
301+
predefined.get,
302302
)

0 commit comments

Comments
 (0)