Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 18, 2024
1 parent 4856e0e commit 7fd2e70
Show file tree
Hide file tree
Showing 13 changed files with 526 additions and 210 deletions.
222 changes: 174 additions & 48 deletions src/cloudflare/resources/dns/records.py

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions src/cloudflare/resources/pcaps/pcaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def create(
self,
*,
account_id: str,
colo_name: str,
destination_conf: str,
packet_limit: float,
system: Literal["magic-transit"],
time_limit: float,
type: Literal["simple", "full"],
byte_limit: float | NotGiven = NOT_GIVEN,
colo_name: str | NotGiven = NOT_GIVEN,
destination_conf: str | NotGiven = NOT_GIVEN,
filter_v1: pcap_create_params.FilterV1 | NotGiven = NOT_GIVEN,
packet_limit: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -87,6 +87,14 @@ def create(
Args:
account_id: Identifier
colo_name: The name of the data center used for the packet capture. This can be a specific
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
packet captures.
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
packet_limit: The limit of packets contained in a packet capture.
system: The system used to collect packet captures.
time_limit: The packet capture duration in seconds.
Expand All @@ -97,14 +105,6 @@ def create(
byte_limit: The maximum number of bytes to capture. This field only applies to `full` packet
captures.
colo_name: The name of the data center used for the packet capture. This can be a specific
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
packet captures.
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
packet_limit: The limit of packets contained in a packet capture.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand All @@ -121,14 +121,14 @@ def create(
f"/accounts/{account_id}/pcaps",
body=maybe_transform(
{
"colo_name": colo_name,
"destination_conf": destination_conf,
"packet_limit": packet_limit,
"system": system,
"time_limit": time_limit,
"type": type,
"byte_limit": byte_limit,
"colo_name": colo_name,
"destination_conf": destination_conf,
"filter_v1": filter_v1,
"packet_limit": packet_limit,
},
pcap_create_params.PCAPCreateParams,
),
Expand Down Expand Up @@ -255,14 +255,14 @@ async def create(
self,
*,
account_id: str,
colo_name: str,
destination_conf: str,
packet_limit: float,
system: Literal["magic-transit"],
time_limit: float,
type: Literal["simple", "full"],
byte_limit: float | NotGiven = NOT_GIVEN,
colo_name: str | NotGiven = NOT_GIVEN,
destination_conf: str | NotGiven = NOT_GIVEN,
filter_v1: pcap_create_params.FilterV1 | NotGiven = NOT_GIVEN,
packet_limit: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -276,6 +276,14 @@ async def create(
Args:
account_id: Identifier
colo_name: The name of the data center used for the packet capture. This can be a specific
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
packet captures.
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
packet_limit: The limit of packets contained in a packet capture.
system: The system used to collect packet captures.
time_limit: The packet capture duration in seconds.
Expand All @@ -286,14 +294,6 @@ async def create(
byte_limit: The maximum number of bytes to capture. This field only applies to `full` packet
captures.
colo_name: The name of the data center used for the packet capture. This can be a specific
colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
packet captures.
destination_conf: The full URI for the bucket. This field only applies to `full` packet captures.
packet_limit: The limit of packets contained in a packet capture.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
Expand All @@ -310,14 +310,14 @@ async def create(
f"/accounts/{account_id}/pcaps",
body=await async_maybe_transform(
{
"colo_name": colo_name,
"destination_conf": destination_conf,
"packet_limit": packet_limit,
"system": system,
"time_limit": time_limit,
"type": type,
"byte_limit": byte_limit,
"colo_name": colo_name,
"destination_conf": destination_conf,
"filter_v1": filter_v1,
"packet_limit": packet_limit,
},
pcap_create_params.PCAPCreateParams,
),
Expand Down
Loading

0 comments on commit 7fd2e70

Please sign in to comment.