Skip to content

Commit 7fd2e70

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#140)
1 parent 4856e0e commit 7fd2e70

File tree

13 files changed

+526
-210
lines changed

13 files changed

+526
-210
lines changed

src/cloudflare/resources/dns/records.py

+174-48
Large diffs are not rendered by default.

src/cloudflare/resources/pcaps/pcaps.py

+28-28
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ def create(
6666
self,
6767
*,
6868
account_id: str,
69+
colo_name: str,
70+
destination_conf: str,
71+
packet_limit: float,
6972
system: Literal["magic-transit"],
7073
time_limit: float,
7174
type: Literal["simple", "full"],
7275
byte_limit: float | NotGiven = NOT_GIVEN,
73-
colo_name: str | NotGiven = NOT_GIVEN,
74-
destination_conf: str | NotGiven = NOT_GIVEN,
7576
filter_v1: pcap_create_params.FilterV1 | NotGiven = NOT_GIVEN,
76-
packet_limit: float | NotGiven = NOT_GIVEN,
7777
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7878
# The extra values given here take precedence over values defined on the client or passed to this method.
7979
extra_headers: Headers | None = None,
@@ -87,6 +87,14 @@ def create(
8787
Args:
8888
account_id: Identifier
8989
90+
colo_name: The name of the data center used for the packet capture. This can be a specific
91+
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
92+
packet captures.
93+
94+
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
95+
96+
packet_limit: The limit of packets contained in a packet capture.
97+
9098
system: The system used to collect packet captures.
9199
92100
time_limit: The packet capture duration in seconds.
@@ -97,14 +105,6 @@ def create(
97105
byte_limit: The maximum number of bytes to capture. This field only applies to `full` packet
98106
captures.
99107
100-
colo_name: The name of the data center used for the packet capture. This can be a specific
101-
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
102-
packet captures.
103-
104-
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
105-
106-
packet_limit: The limit of packets contained in a packet capture.
107-
108108
extra_headers: Send extra headers
109109
110110
extra_query: Add additional query parameters to the request
@@ -121,14 +121,14 @@ def create(
121121
f"/accounts/{account_id}/pcaps",
122122
body=maybe_transform(
123123
{
124+
"colo_name": colo_name,
125+
"destination_conf": destination_conf,
126+
"packet_limit": packet_limit,
124127
"system": system,
125128
"time_limit": time_limit,
126129
"type": type,
127130
"byte_limit": byte_limit,
128-
"colo_name": colo_name,
129-
"destination_conf": destination_conf,
130131
"filter_v1": filter_v1,
131-
"packet_limit": packet_limit,
132132
},
133133
pcap_create_params.PCAPCreateParams,
134134
),
@@ -255,14 +255,14 @@ async def create(
255255
self,
256256
*,
257257
account_id: str,
258+
colo_name: str,
259+
destination_conf: str,
260+
packet_limit: float,
258261
system: Literal["magic-transit"],
259262
time_limit: float,
260263
type: Literal["simple", "full"],
261264
byte_limit: float | NotGiven = NOT_GIVEN,
262-
colo_name: str | NotGiven = NOT_GIVEN,
263-
destination_conf: str | NotGiven = NOT_GIVEN,
264265
filter_v1: pcap_create_params.FilterV1 | NotGiven = NOT_GIVEN,
265-
packet_limit: float | NotGiven = NOT_GIVEN,
266266
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
267267
# The extra values given here take precedence over values defined on the client or passed to this method.
268268
extra_headers: Headers | None = None,
@@ -276,6 +276,14 @@ async def create(
276276
Args:
277277
account_id: Identifier
278278
279+
colo_name: The name of the data center used for the packet capture. This can be a specific
280+
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
281+
packet captures.
282+
283+
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
284+
285+
packet_limit: The limit of packets contained in a packet capture.
286+
279287
system: The system used to collect packet captures.
280288
281289
time_limit: The packet capture duration in seconds.
@@ -286,14 +294,6 @@ async def create(
286294
byte_limit: The maximum number of bytes to capture. This field only applies to `full` packet
287295
captures.
288296
289-
colo_name: The name of the data center used for the packet capture. This can be a specific
290-
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
291-
packet captures.
292-
293-
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
294-
295-
packet_limit: The limit of packets contained in a packet capture.
296-
297297
extra_headers: Send extra headers
298298
299299
extra_query: Add additional query parameters to the request
@@ -310,14 +310,14 @@ async def create(
310310
f"/accounts/{account_id}/pcaps",
311311
body=await async_maybe_transform(
312312
{
313+
"colo_name": colo_name,
314+
"destination_conf": destination_conf,
315+
"packet_limit": packet_limit,
313316
"system": system,
314317
"time_limit": time_limit,
315318
"type": type,
316319
"byte_limit": byte_limit,
317-
"colo_name": colo_name,
318-
"destination_conf": destination_conf,
319320
"filter_v1": filter_v1,
320-
"packet_limit": packet_limit,
321321
},
322322
pcap_create_params.PCAPCreateParams,
323323
),

0 commit comments

Comments
 (0)