Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 19, 2024
1 parent 7b85d22 commit aa12de0
Show file tree
Hide file tree
Showing 10 changed files with 242 additions and 385 deletions.
13 changes: 4 additions & 9 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3043,17 +3043,18 @@ Methods:

## Settings

### SchemaValidation

Types:

```python
from cloudflare.types.api_gateway.settings import Settings
from cloudflare.types.api_gateway import Settings
```

### SchemaValidation

Methods:

- <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>
- <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>
- <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>

## UserSchemas
Expand Down Expand Up @@ -3089,12 +3090,6 @@ Methods:

- <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>

## SchemaValidation

Methods:

- <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>

# ManagedHeaders

Types:
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/api_gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@
ConfigurationsResourceWithStreamingResponse,
AsyncConfigurationsResourceWithStreamingResponse,
)
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
SchemaValidationResourceWithRawResponse,
AsyncSchemaValidationResourceWithRawResponse,
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)

__all__ = [
"ConfigurationsResource",
Expand Down Expand Up @@ -102,12 +94,6 @@
"AsyncUserSchemasResourceWithRawResponse",
"UserSchemasResourceWithStreamingResponse",
"AsyncUserSchemasResourceWithStreamingResponse",
"SchemaValidationResource",
"AsyncSchemaValidationResource",
"SchemaValidationResourceWithRawResponse",
"AsyncSchemaValidationResourceWithRawResponse",
"SchemaValidationResourceWithStreamingResponse",
"AsyncSchemaValidationResourceWithStreamingResponse",
"APIGatewayResource",
"AsyncAPIGatewayResource",
"APIGatewayResourceWithRawResponse",
Expand Down
32 changes: 0 additions & 32 deletions src/cloudflare/resources/api_gateway/api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@
ConfigurationsResourceWithStreamingResponse,
AsyncConfigurationsResourceWithStreamingResponse,
)
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
SchemaValidationResourceWithRawResponse,
AsyncSchemaValidationResourceWithRawResponse,
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)
from .settings.settings import SettingsResource, AsyncSettingsResource
from .discovery.discovery import DiscoveryResource, AsyncDiscoveryResource
from .operations.operations import OperationsResource, AsyncOperationsResource
Expand Down Expand Up @@ -93,10 +85,6 @@ def settings(self) -> SettingsResource:
def user_schemas(self) -> UserSchemasResource:
return UserSchemasResource(self._client)

@cached_property
def schema_validation(self) -> SchemaValidationResource:
return SchemaValidationResource(self._client)

@cached_property
def with_raw_response(self) -> APIGatewayResourceWithRawResponse:
return APIGatewayResourceWithRawResponse(self)
Expand Down Expand Up @@ -131,10 +119,6 @@ def settings(self) -> AsyncSettingsResource:
def user_schemas(self) -> AsyncUserSchemasResource:
return AsyncUserSchemasResource(self._client)

@cached_property
def schema_validation(self) -> AsyncSchemaValidationResource:
return AsyncSchemaValidationResource(self._client)

@cached_property
def with_raw_response(self) -> AsyncAPIGatewayResourceWithRawResponse:
return AsyncAPIGatewayResourceWithRawResponse(self)
Expand Down Expand Up @@ -172,10 +156,6 @@ def settings(self) -> SettingsResourceWithRawResponse:
def user_schemas(self) -> UserSchemasResourceWithRawResponse:
return UserSchemasResourceWithRawResponse(self._api_gateway.user_schemas)

@cached_property
def schema_validation(self) -> SchemaValidationResourceWithRawResponse:
return SchemaValidationResourceWithRawResponse(self._api_gateway.schema_validation)


class AsyncAPIGatewayResourceWithRawResponse:
def __init__(self, api_gateway: AsyncAPIGatewayResource) -> None:
Expand Down Expand Up @@ -205,10 +185,6 @@ def settings(self) -> AsyncSettingsResourceWithRawResponse:
def user_schemas(self) -> AsyncUserSchemasResourceWithRawResponse:
return AsyncUserSchemasResourceWithRawResponse(self._api_gateway.user_schemas)

@cached_property
def schema_validation(self) -> AsyncSchemaValidationResourceWithRawResponse:
return AsyncSchemaValidationResourceWithRawResponse(self._api_gateway.schema_validation)


class APIGatewayResourceWithStreamingResponse:
def __init__(self, api_gateway: APIGatewayResource) -> None:
Expand Down Expand Up @@ -238,10 +214,6 @@ def settings(self) -> SettingsResourceWithStreamingResponse:
def user_schemas(self) -> UserSchemasResourceWithStreamingResponse:
return UserSchemasResourceWithStreamingResponse(self._api_gateway.user_schemas)

@cached_property
def schema_validation(self) -> SchemaValidationResourceWithStreamingResponse:
return SchemaValidationResourceWithStreamingResponse(self._api_gateway.schema_validation)


class AsyncAPIGatewayResourceWithStreamingResponse:
def __init__(self, api_gateway: AsyncAPIGatewayResource) -> None:
Expand Down Expand Up @@ -270,7 +242,3 @@ def settings(self) -> AsyncSettingsResourceWithStreamingResponse:
@cached_property
def user_schemas(self) -> AsyncUserSchemasResourceWithStreamingResponse:
return AsyncUserSchemasResourceWithStreamingResponse(self._api_gateway.user_schemas)

@cached_property
def schema_validation(self) -> AsyncSchemaValidationResourceWithStreamingResponse:
return AsyncSchemaValidationResourceWithStreamingResponse(self._api_gateway.schema_validation)
211 changes: 0 additions & 211 deletions src/cloudflare/resources/api_gateway/schema_validation.py

This file was deleted.

Loading

0 comments on commit aa12de0

Please sign in to comment.