@@ -66,14 +66,14 @@ def create(
66
66
self ,
67
67
* ,
68
68
account_id : str ,
69
+ colo_name : str ,
70
+ destination_conf : str ,
71
+ packet_limit : float ,
69
72
system : Literal ["magic-transit" ],
70
73
time_limit : float ,
71
74
type : Literal ["simple" , "full" ],
72
75
byte_limit : float | NotGiven = NOT_GIVEN ,
73
- colo_name : str | NotGiven = NOT_GIVEN ,
74
- destination_conf : str | NotGiven = NOT_GIVEN ,
75
76
filter_v1 : pcap_create_params .FilterV1 | NotGiven = NOT_GIVEN ,
76
- packet_limit : float | NotGiven = NOT_GIVEN ,
77
77
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
78
78
# The extra values given here take precedence over values defined on the client or passed to this method.
79
79
extra_headers : Headers | None = None ,
@@ -87,6 +87,14 @@ def create(
87
87
Args:
88
88
account_id: Identifier
89
89
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
+
90
98
system: The system used to collect packet captures.
91
99
92
100
time_limit: The packet capture duration in seconds.
@@ -97,14 +105,6 @@ def create(
97
105
byte_limit: The maximum number of bytes to capture. This field only applies to `full` packet
98
106
captures.
99
107
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
-
108
108
extra_headers: Send extra headers
109
109
110
110
extra_query: Add additional query parameters to the request
@@ -121,14 +121,14 @@ def create(
121
121
f"/accounts/{ account_id } /pcaps" ,
122
122
body = maybe_transform (
123
123
{
124
+ "colo_name" : colo_name ,
125
+ "destination_conf" : destination_conf ,
126
+ "packet_limit" : packet_limit ,
124
127
"system" : system ,
125
128
"time_limit" : time_limit ,
126
129
"type" : type ,
127
130
"byte_limit" : byte_limit ,
128
- "colo_name" : colo_name ,
129
- "destination_conf" : destination_conf ,
130
131
"filter_v1" : filter_v1 ,
131
- "packet_limit" : packet_limit ,
132
132
},
133
133
pcap_create_params .PCAPCreateParams ,
134
134
),
@@ -255,14 +255,14 @@ async def create(
255
255
self ,
256
256
* ,
257
257
account_id : str ,
258
+ colo_name : str ,
259
+ destination_conf : str ,
260
+ packet_limit : float ,
258
261
system : Literal ["magic-transit" ],
259
262
time_limit : float ,
260
263
type : Literal ["simple" , "full" ],
261
264
byte_limit : float | NotGiven = NOT_GIVEN ,
262
- colo_name : str | NotGiven = NOT_GIVEN ,
263
- destination_conf : str | NotGiven = NOT_GIVEN ,
264
265
filter_v1 : pcap_create_params .FilterV1 | NotGiven = NOT_GIVEN ,
265
- packet_limit : float | NotGiven = NOT_GIVEN ,
266
266
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
267
267
# The extra values given here take precedence over values defined on the client or passed to this method.
268
268
extra_headers : Headers | None = None ,
@@ -276,6 +276,14 @@ async def create(
276
276
Args:
277
277
account_id: Identifier
278
278
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
+
279
287
system: The system used to collect packet captures.
280
288
281
289
time_limit: The packet capture duration in seconds.
@@ -286,14 +294,6 @@ async def create(
286
294
byte_limit: The maximum number of bytes to capture. This field only applies to `full` packet
287
295
captures.
288
296
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
-
297
297
extra_headers: Send extra headers
298
298
299
299
extra_query: Add additional query parameters to the request
@@ -310,14 +310,14 @@ async def create(
310
310
f"/accounts/{ account_id } /pcaps" ,
311
311
body = await async_maybe_transform (
312
312
{
313
+ "colo_name" : colo_name ,
314
+ "destination_conf" : destination_conf ,
315
+ "packet_limit" : packet_limit ,
313
316
"system" : system ,
314
317
"time_limit" : time_limit ,
315
318
"type" : type ,
316
319
"byte_limit" : byte_limit ,
317
- "colo_name" : colo_name ,
318
- "destination_conf" : destination_conf ,
319
320
"filter_v1" : filter_v1 ,
320
- "packet_limit" : packet_limit ,
321
321
},
322
322
pcap_create_params .PCAPCreateParams ,
323
323
),
0 commit comments