Skip to content

Commit aa12de0

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1055)
1 parent 7b85d22 commit aa12de0

File tree

10 files changed

+242
-385
lines changed

10 files changed

+242
-385
lines changed

api.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,17 +3043,18 @@ Methods:
30433043

30443044
## Settings
30453045

3046-
### SchemaValidation
3047-
30483046
Types:
30493047

30503048
```python
3051-
from cloudflare.types.api_gateway.settings import Settings
3049+
from cloudflare.types.api_gateway import Settings
30523050
```
30533051

3052+
### SchemaValidation
3053+
30543054
Methods:
30553055

30563056
- <code title="put /zones/{zone_id}/api_gateway/settings/schema_validation">client.api_gateway.settings.schema_validation.<a href="./src/cloudflare/resources/api_gateway/settings/schema_validation.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/settings/schema_validation_update_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/settings/settings.py">Settings</a></code>
3057+
- <code title="patch /zones/{zone_id}/api_gateway/settings/schema_validation">client.api_gateway.settings.schema_validation.<a href="./src/cloudflare/resources/api_gateway/settings/schema_validation.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/settings/schema_validation_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/settings/settings.py">Settings</a></code>
30573058
- <code title="get /zones/{zone_id}/api_gateway/settings/schema_validation">client.api_gateway.settings.schema_validation.<a href="./src/cloudflare/resources/api_gateway/settings/schema_validation.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/api_gateway/settings/settings.py">Settings</a></code>
30583059

30593060
## UserSchemas
@@ -3089,12 +3090,6 @@ Methods:
30893090

30903091
- <code title="get /zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations">client.api_gateway.user_schemas.operations.<a href="./src/cloudflare/resources/api_gateway/user_schemas/operations.py">list</a>(schema_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py">SyncSinglePage[OperationListResponse]</a></code>
30913092

3092-
## SchemaValidation
3093-
3094-
Methods:
3095-
3096-
- <code title="patch /zones/{zone_id}/api_gateway/settings/schema_validation">client.api_gateway.schema_validation.<a href="./src/cloudflare/resources/api_gateway/schema_validation.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/schema_validation_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/settings/settings.py">Settings</a></code>
3097-
30983093
# ManagedHeaders
30993094

31003095
Types:

src/cloudflare/resources/api_gateway/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@
5656
ConfigurationsResourceWithStreamingResponse,
5757
AsyncConfigurationsResourceWithStreamingResponse,
5858
)
59-
from .schema_validation import (
60-
SchemaValidationResource,
61-
AsyncSchemaValidationResource,
62-
SchemaValidationResourceWithRawResponse,
63-
AsyncSchemaValidationResourceWithRawResponse,
64-
SchemaValidationResourceWithStreamingResponse,
65-
AsyncSchemaValidationResourceWithStreamingResponse,
66-
)
6759

6860
__all__ = [
6961
"ConfigurationsResource",
@@ -102,12 +94,6 @@
10294
"AsyncUserSchemasResourceWithRawResponse",
10395
"UserSchemasResourceWithStreamingResponse",
10496
"AsyncUserSchemasResourceWithStreamingResponse",
105-
"SchemaValidationResource",
106-
"AsyncSchemaValidationResource",
107-
"SchemaValidationResourceWithRawResponse",
108-
"AsyncSchemaValidationResourceWithRawResponse",
109-
"SchemaValidationResourceWithStreamingResponse",
110-
"AsyncSchemaValidationResourceWithStreamingResponse",
11197
"APIGatewayResource",
11298
"AsyncAPIGatewayResource",
11399
"APIGatewayResourceWithRawResponse",

src/cloudflare/resources/api_gateway/api_gateway.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@
5252
ConfigurationsResourceWithStreamingResponse,
5353
AsyncConfigurationsResourceWithStreamingResponse,
5454
)
55-
from .schema_validation import (
56-
SchemaValidationResource,
57-
AsyncSchemaValidationResource,
58-
SchemaValidationResourceWithRawResponse,
59-
AsyncSchemaValidationResourceWithRawResponse,
60-
SchemaValidationResourceWithStreamingResponse,
61-
AsyncSchemaValidationResourceWithStreamingResponse,
62-
)
6355
from .settings.settings import SettingsResource, AsyncSettingsResource
6456
from .discovery.discovery import DiscoveryResource, AsyncDiscoveryResource
6557
from .operations.operations import OperationsResource, AsyncOperationsResource
@@ -93,10 +85,6 @@ def settings(self) -> SettingsResource:
9385
def user_schemas(self) -> UserSchemasResource:
9486
return UserSchemasResource(self._client)
9587

96-
@cached_property
97-
def schema_validation(self) -> SchemaValidationResource:
98-
return SchemaValidationResource(self._client)
99-
10088
@cached_property
10189
def with_raw_response(self) -> APIGatewayResourceWithRawResponse:
10290
return APIGatewayResourceWithRawResponse(self)
@@ -131,10 +119,6 @@ def settings(self) -> AsyncSettingsResource:
131119
def user_schemas(self) -> AsyncUserSchemasResource:
132120
return AsyncUserSchemasResource(self._client)
133121

134-
@cached_property
135-
def schema_validation(self) -> AsyncSchemaValidationResource:
136-
return AsyncSchemaValidationResource(self._client)
137-
138122
@cached_property
139123
def with_raw_response(self) -> AsyncAPIGatewayResourceWithRawResponse:
140124
return AsyncAPIGatewayResourceWithRawResponse(self)
@@ -172,10 +156,6 @@ def settings(self) -> SettingsResourceWithRawResponse:
172156
def user_schemas(self) -> UserSchemasResourceWithRawResponse:
173157
return UserSchemasResourceWithRawResponse(self._api_gateway.user_schemas)
174158

175-
@cached_property
176-
def schema_validation(self) -> SchemaValidationResourceWithRawResponse:
177-
return SchemaValidationResourceWithRawResponse(self._api_gateway.schema_validation)
178-
179159

180160
class AsyncAPIGatewayResourceWithRawResponse:
181161
def __init__(self, api_gateway: AsyncAPIGatewayResource) -> None:
@@ -205,10 +185,6 @@ def settings(self) -> AsyncSettingsResourceWithRawResponse:
205185
def user_schemas(self) -> AsyncUserSchemasResourceWithRawResponse:
206186
return AsyncUserSchemasResourceWithRawResponse(self._api_gateway.user_schemas)
207187

208-
@cached_property
209-
def schema_validation(self) -> AsyncSchemaValidationResourceWithRawResponse:
210-
return AsyncSchemaValidationResourceWithRawResponse(self._api_gateway.schema_validation)
211-
212188

213189
class APIGatewayResourceWithStreamingResponse:
214190
def __init__(self, api_gateway: APIGatewayResource) -> None:
@@ -238,10 +214,6 @@ def settings(self) -> SettingsResourceWithStreamingResponse:
238214
def user_schemas(self) -> UserSchemasResourceWithStreamingResponse:
239215
return UserSchemasResourceWithStreamingResponse(self._api_gateway.user_schemas)
240216

241-
@cached_property
242-
def schema_validation(self) -> SchemaValidationResourceWithStreamingResponse:
243-
return SchemaValidationResourceWithStreamingResponse(self._api_gateway.schema_validation)
244-
245217

246218
class AsyncAPIGatewayResourceWithStreamingResponse:
247219
def __init__(self, api_gateway: AsyncAPIGatewayResource) -> None:
@@ -270,7 +242,3 @@ def settings(self) -> AsyncSettingsResourceWithStreamingResponse:
270242
@cached_property
271243
def user_schemas(self) -> AsyncUserSchemasResourceWithStreamingResponse:
272244
return AsyncUserSchemasResourceWithStreamingResponse(self._api_gateway.user_schemas)
273-
274-
@cached_property
275-
def schema_validation(self) -> AsyncSchemaValidationResourceWithStreamingResponse:
276-
return AsyncSchemaValidationResourceWithStreamingResponse(self._api_gateway.schema_validation)

src/cloudflare/resources/api_gateway/schema_validation.py

Lines changed: 0 additions & 211 deletions
This file was deleted.

0 commit comments

Comments
 (0)