Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent 266c0dc commit 0b9bdab
Show file tree
Hide file tree
Showing 24 changed files with 2,814 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1249
configured_endpoints: 1259
15 changes: 15 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6021,9 +6021,24 @@ from cloudflare.types.vectorize import (
IndexInsert,
IndexQuery,
IndexUpsert,
IndexDeleteResponse,
IndexGetByIDsResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/vectorize/indexes">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_create_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/create_index.py">Optional</a></code>
- <code title="put /accounts/{account_id}/vectorize/indexes/{index_name}">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">update</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_update_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/create_index.py">Optional</a></code>
- <code title="get /accounts/{account_id}/vectorize/indexes">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/vectorize/create_index.py">SyncSinglePage[CreateIndex]</a></code>
- <code title="delete /accounts/{account_id}/vectorize/indexes/{index_name}">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">delete</a>(index_name, \*, account_id) -> <a href="./src/cloudflare/types/vectorize/index_delete_response.py">IndexDeleteResponse</a></code>
- <code title="post /accounts/{account_id}/vectorize/indexes/{index_name}/delete-by-ids">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">delete_by_ids</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_delete_by_ids_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/index_delete_vectors_by_id.py">Optional</a></code>
- <code title="get /accounts/{account_id}/vectorize/indexes/{index_name}">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">get</a>(index_name, \*, account_id) -> <a href="./src/cloudflare/types/vectorize/create_index.py">Optional</a></code>
- <code title="post /accounts/{account_id}/vectorize/indexes/{index_name}/get-by-ids">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">get_by_ids</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_get_by_ids_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/index_get_by_ids_response.py">object</a></code>
- <code title="post /accounts/{account_id}/vectorize/indexes/{index_name}/insert">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">insert</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_insert_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/index_insert.py">Optional</a></code>
- <code title="post /accounts/{account_id}/vectorize/indexes/{index_name}/query">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">query</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_query_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/index_query.py">Optional</a></code>
- <code title="post /accounts/{account_id}/vectorize/indexes/{index_name}/upsert">client.vectorize.indexes.<a href="./src/cloudflare/resources/vectorize/indexes.py">upsert</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/index_upsert_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/index_upsert.py">Optional</a></code>

# URLScanner

Types:
Expand Down
8 changes: 8 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class Cloudflare(SyncAPIClient):
challenges: resources.Challenges
hyperdrive: resources.HyperdriveResource
rum: resources.RUM
vectorize: resources.Vectorize
url_scanner: resources.URLScanner
radar: resources.Radar
bot_management: resources.BotManagement
Expand Down Expand Up @@ -271,6 +272,7 @@ def __init__(
self.challenges = resources.Challenges(self)
self.hyperdrive = resources.HyperdriveResource(self)
self.rum = resources.RUM(self)
self.vectorize = resources.Vectorize(self)
self.url_scanner = resources.URLScanner(self)
self.radar = resources.Radar(self)
self.bot_management = resources.BotManagement(self)
Expand Down Expand Up @@ -529,6 +531,7 @@ class AsyncCloudflare(AsyncAPIClient):
challenges: resources.AsyncChallenges
hyperdrive: resources.AsyncHyperdriveResource
rum: resources.AsyncRUM
vectorize: resources.AsyncVectorize
url_scanner: resources.AsyncURLScanner
radar: resources.AsyncRadar
bot_management: resources.AsyncBotManagement
Expand Down Expand Up @@ -684,6 +687,7 @@ def __init__(
self.challenges = resources.AsyncChallenges(self)
self.hyperdrive = resources.AsyncHyperdriveResource(self)
self.rum = resources.AsyncRUM(self)
self.vectorize = resources.AsyncVectorize(self)
self.url_scanner = resources.AsyncURLScanner(self)
self.radar = resources.AsyncRadar(self)
self.bot_management = resources.AsyncBotManagement(self)
Expand Down Expand Up @@ -943,6 +947,7 @@ def __init__(self, client: Cloudflare) -> None:
self.challenges = resources.ChallengesWithRawResponse(client.challenges)
self.hyperdrive = resources.HyperdriveResourceWithRawResponse(client.hyperdrive)
self.rum = resources.RUMWithRawResponse(client.rum)
self.vectorize = resources.VectorizeWithRawResponse(client.vectorize)
self.url_scanner = resources.URLScannerWithRawResponse(client.url_scanner)
self.radar = resources.RadarWithRawResponse(client.radar)
self.bot_management = resources.BotManagementWithRawResponse(client.bot_management)
Expand Down Expand Up @@ -1033,6 +1038,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.challenges = resources.AsyncChallengesWithRawResponse(client.challenges)
self.hyperdrive = resources.AsyncHyperdriveResourceWithRawResponse(client.hyperdrive)
self.rum = resources.AsyncRUMWithRawResponse(client.rum)
self.vectorize = resources.AsyncVectorizeWithRawResponse(client.vectorize)
self.url_scanner = resources.AsyncURLScannerWithRawResponse(client.url_scanner)
self.radar = resources.AsyncRadarWithRawResponse(client.radar)
self.bot_management = resources.AsyncBotManagementWithRawResponse(client.bot_management)
Expand Down Expand Up @@ -1123,6 +1129,7 @@ def __init__(self, client: Cloudflare) -> None:
self.challenges = resources.ChallengesWithStreamingResponse(client.challenges)
self.hyperdrive = resources.HyperdriveResourceWithStreamingResponse(client.hyperdrive)
self.rum = resources.RUMWithStreamingResponse(client.rum)
self.vectorize = resources.VectorizeWithStreamingResponse(client.vectorize)
self.url_scanner = resources.URLScannerWithStreamingResponse(client.url_scanner)
self.radar = resources.RadarWithStreamingResponse(client.radar)
self.bot_management = resources.BotManagementWithStreamingResponse(client.bot_management)
Expand Down Expand Up @@ -1219,6 +1226,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.challenges = resources.AsyncChallengesWithStreamingResponse(client.challenges)
self.hyperdrive = resources.AsyncHyperdriveResourceWithStreamingResponse(client.hyperdrive)
self.rum = resources.AsyncRUMWithStreamingResponse(client.rum)
self.vectorize = resources.AsyncVectorizeWithStreamingResponse(client.vectorize)
self.url_scanner = resources.AsyncURLScannerWithStreamingResponse(client.url_scanner)
self.radar = resources.AsyncRadarWithStreamingResponse(client.radar)
self.bot_management = resources.AsyncBotManagementWithStreamingResponse(client.bot_management)
Expand Down
14 changes: 14 additions & 0 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@
RegistrarWithStreamingResponse,
AsyncRegistrarWithStreamingResponse,
)
from .vectorize import (
Vectorize,
AsyncVectorize,
VectorizeWithRawResponse,
AsyncVectorizeWithRawResponse,
VectorizeWithStreamingResponse,
AsyncVectorizeWithStreamingResponse,
)
from .addressing import (
Addressing,
AsyncAddressing,
Expand Down Expand Up @@ -1056,6 +1064,12 @@
"AsyncRUMWithRawResponse",
"RUMWithStreamingResponse",
"AsyncRUMWithStreamingResponse",
"Vectorize",
"AsyncVectorize",
"VectorizeWithRawResponse",
"AsyncVectorizeWithRawResponse",
"VectorizeWithStreamingResponse",
"AsyncVectorizeWithStreamingResponse",
"URLScanner",
"AsyncURLScanner",
"URLScannerWithRawResponse",
Expand Down
33 changes: 33 additions & 0 deletions src/cloudflare/resources/vectorize/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .indexes import (
Indexes,
AsyncIndexes,
IndexesWithRawResponse,
AsyncIndexesWithRawResponse,
IndexesWithStreamingResponse,
AsyncIndexesWithStreamingResponse,
)
from .vectorize import (
Vectorize,
AsyncVectorize,
VectorizeWithRawResponse,
AsyncVectorizeWithRawResponse,
VectorizeWithStreamingResponse,
AsyncVectorizeWithStreamingResponse,
)

__all__ = [
"Indexes",
"AsyncIndexes",
"IndexesWithRawResponse",
"AsyncIndexesWithRawResponse",
"IndexesWithStreamingResponse",
"AsyncIndexesWithStreamingResponse",
"Vectorize",
"AsyncVectorize",
"VectorizeWithRawResponse",
"AsyncVectorizeWithRawResponse",
"VectorizeWithStreamingResponse",
"AsyncVectorizeWithStreamingResponse",
]
Loading

0 comments on commit 0b9bdab

Please sign in to comment.