Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Sep 20, 2024
1 parent 1bfe952 commit 7a3298a
Show file tree
Hide file tree
Showing 14 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1316
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-898c93f32338a73995a54cdff98e5044cdd1c028a5b3481482968edc7315ba99.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b5ed9f249a71ae83ef4d7b2757e34c788d10d81e4392b2209d3058b35538602.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def get(
produced.
Args:
account_id: Identifier.
account_id: Identifier
bucket_name: Identifier.
bucket_name: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -119,9 +119,9 @@ async def get(
produced.
Args:
account_id: Identifier.
account_id: Identifier
bucket_name: Identifier.
bucket_name: Identifier
extra_headers: Send extra headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ def update(
production.
Args:
account_id: Identifier.
account_id: Identifier
bucket_name: Identifier.
bucket_name: Identifier
queue_id: Identifier.
queue_id: Identifier
rules: Array of rules to drive notifications
Expand Down Expand Up @@ -110,11 +110,11 @@ def delete(
further notifications will be produced for the queue once complete.
Args:
account_id: Identifier.
account_id: Identifier
bucket_name: Identifier.
bucket_name: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -176,11 +176,11 @@ async def update(
production.
Args:
account_id: Identifier.
account_id: Identifier
bucket_name: Identifier.
bucket_name: Identifier
queue_id: Identifier.
queue_id: Identifier
rules: Array of rules to drive notifications
Expand Down Expand Up @@ -230,11 +230,11 @@ async def delete(
further notifications will be produced for the queue once complete.
Args:
account_id: Identifier.
account_id: Identifier
bucket_name: Identifier.
bucket_name: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down
40 changes: 20 additions & 20 deletions src/cloudflare/resources/queues/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def create(
Creates a new consumer for a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -103,11 +103,11 @@ def update(
Updates the consumer for a queue, or creates one if it does not exist.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
consumer_id: Identifier.
consumer_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -153,11 +153,11 @@ def delete(
Deletes the consumer for a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
consumer_id: Identifier.
consumer_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -206,9 +206,9 @@ def get(
Returns the consumers for a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -261,9 +261,9 @@ async def create(
Creates a new consumer for a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -308,11 +308,11 @@ async def update(
Updates the consumer for a queue, or creates one if it does not exist.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
consumer_id: Identifier.
consumer_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -358,11 +358,11 @@ async def delete(
Deletes the consumer for a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
consumer_id: Identifier.
consumer_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -411,9 +411,9 @@ async def get(
Returns the consumers for a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down
28 changes: 14 additions & 14 deletions src/cloudflare/resources/queues/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def ack(
Acknowledge + Retry messages from a Queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -96,7 +96,7 @@ def pull(
*,
account_id: str,
batch_size: float | NotGiven = NOT_GIVEN,
visibility_timeout_ms: float | NotGiven = NOT_GIVEN,
visibility_timeout: 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 @@ -108,13 +108,13 @@ def pull(
Pull a batch of messages from a Queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
batch_size: The maximum number of messages to include in a batch.
visibility_timeout_ms: The number of milliseconds that a message is exclusively leased. After the
visibility_timeout: The number of milliseconds that a message is exclusively leased. After the
timeout, the message becomes available for another attempt.
extra_headers: Send extra headers
Expand All @@ -134,7 +134,7 @@ def pull(
body=maybe_transform(
{
"batch_size": batch_size,
"visibility_timeout_ms": visibility_timeout_ms,
"visibility_timeout": visibility_timeout,
},
message_pull_params.MessagePullParams,
),
Expand Down Expand Up @@ -176,9 +176,9 @@ async def ack(
Acknowledge + Retry messages from a Queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -217,7 +217,7 @@ async def pull(
*,
account_id: str,
batch_size: float | NotGiven = NOT_GIVEN,
visibility_timeout_ms: float | NotGiven = NOT_GIVEN,
visibility_timeout: 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 @@ -229,13 +229,13 @@ async def pull(
Pull a batch of messages from a Queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
batch_size: The maximum number of messages to include in a batch.
visibility_timeout_ms: The number of milliseconds that a message is exclusively leased. After the
visibility_timeout: The number of milliseconds that a message is exclusively leased. After the
timeout, the message becomes available for another attempt.
extra_headers: Send extra headers
Expand All @@ -255,7 +255,7 @@ async def pull(
body=await async_maybe_transform(
{
"batch_size": batch_size,
"visibility_timeout_ms": visibility_timeout_ms,
"visibility_timeout": visibility_timeout,
},
message_pull_params.MessagePullParams,
),
Expand Down
32 changes: 16 additions & 16 deletions src/cloudflare/resources/queues/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create(
Creates a new queue.
Args:
account_id: Identifier.
account_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -122,9 +122,9 @@ def update(
Updates a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -166,7 +166,7 @@ def list(
Returns the queues owned by an account.
Args:
account_id: Identifier.
account_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -203,9 +203,9 @@ def delete(
Deletes a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -252,9 +252,9 @@ def get(
Get information about a specific queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -314,7 +314,7 @@ async def create(
Creates a new queue.
Args:
account_id: Identifier.
account_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -356,9 +356,9 @@ async def update(
Updates a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -400,7 +400,7 @@ def list(
Returns the queues owned by an account.
Args:
account_id: Identifier.
account_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -437,9 +437,9 @@ async def delete(
Deletes a queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down Expand Up @@ -486,9 +486,9 @@ async def get(
Get information about a specific queue.
Args:
account_id: Identifier.
account_id: Identifier
queue_id: Identifier.
queue_id: Identifier
extra_headers: Send extra headers
Expand Down
Loading

0 comments on commit 7a3298a

Please sign in to comment.