Skip to content

Commit

Permalink
feat(api): api update (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 19, 2024
1 parent 94403aa commit bfd27f8
Show file tree
Hide file tree
Showing 27 changed files with 15 additions and 2,408 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1417
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c49562d088783434a838d9fb04f3a71514aaf0ee9096dabf65e3ae0825b8756.yml
configured_endpoints: 1411
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d8a11058191753bacee9c070940904a1318942d364a2420ad1e253bd450b2bcf.yml
34 changes: 0 additions & 34 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1193,42 +1193,8 @@ Methods:
- <code title="get /accounts/{account_id}/email-security/investigate/{postfix_id}/raw">client.email_security.investigate.<a href="./src/cloudflare/resources/email_security/investigate.py">raw</a>(postfix_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate_raw_response.py">InvestigateRawResponse</a></code>
- <code title="get /accounts/{account_id}/email-security/investigate/{postfix_id}/trace">client.email_security.investigate.<a href="./src/cloudflare/resources/email_security/investigate.py">trace</a>(postfix_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate_trace_response.py">InvestigateTraceResponse</a></code>

## Phishguard

Types:

```python
from cloudflare.types.email_security import PhishguardListResponse
```

Methods:

- <code title="get /accounts/{account_id}/email-security/phishguard/reports">client.email_security.phishguard.<a href="./src/cloudflare/resources/email_security/phishguard.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/phishguard_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/phishguard_list_response.py">SyncSinglePage[PhishguardListResponse]</a></code>

## Settings

### AllowPatterns

Types:

```python
from cloudflare.types.email_security.settings import (
AllowPatternCreateResponse,
AllowPatternListResponse,
AllowPatternDeleteResponse,
AllowPatternEditResponse,
AllowPatternGetResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/email-security/settings/allow_patterns">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/allow_pattern_create_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_create_response.py">AllowPatternCreateResponse</a></code>
- <code title="get /accounts/{account_id}/email-security/settings/allow_patterns">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/allow_pattern_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_list_response.py">SyncV4PagePaginationArray[AllowPatternListResponse]</a></code>
- <code title="delete /accounts/{account_id}/email-security/settings/allow_patterns/{pattern_id}">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">delete</a>(pattern_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_delete_response.py">AllowPatternDeleteResponse</a></code>
- <code title="patch /accounts/{account_id}/email-security/settings/allow_patterns/{pattern_id}">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">edit</a>(pattern_id, \*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/allow_pattern_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_edit_response.py">AllowPatternEditResponse</a></code>
- <code title="get /accounts/{account_id}/email-security/settings/allow_patterns/{pattern_id}">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">get</a>(pattern_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_get_response.py">AllowPatternGetResponse</a></code>

### BlockSenders

Types:
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/email_security/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
SettingsResourceWithStreamingResponse,
AsyncSettingsResourceWithStreamingResponse,
)
from .phishguard import (
PhishguardResource,
AsyncPhishguardResource,
PhishguardResourceWithRawResponse,
AsyncPhishguardResourceWithRawResponse,
PhishguardResourceWithStreamingResponse,
AsyncPhishguardResourceWithStreamingResponse,
)
from .investigate import (
InvestigateResource,
AsyncInvestigateResource,
Expand All @@ -40,12 +32,6 @@
"AsyncInvestigateResourceWithRawResponse",
"InvestigateResourceWithStreamingResponse",
"AsyncInvestigateResourceWithStreamingResponse",
"PhishguardResource",
"AsyncPhishguardResource",
"PhishguardResourceWithRawResponse",
"AsyncPhishguardResourceWithRawResponse",
"PhishguardResourceWithStreamingResponse",
"AsyncPhishguardResourceWithStreamingResponse",
"SettingsResource",
"AsyncSettingsResource",
"SettingsResourceWithRawResponse",
Expand Down
32 changes: 0 additions & 32 deletions src/cloudflare/resources/email_security/email_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
AsyncSettingsResourceWithStreamingResponse,
)
from ..._compat import cached_property
from .phishguard import (
PhishguardResource,
AsyncPhishguardResource,
PhishguardResourceWithRawResponse,
AsyncPhishguardResourceWithRawResponse,
PhishguardResourceWithStreamingResponse,
AsyncPhishguardResourceWithStreamingResponse,
)
from ..._resource import SyncAPIResource, AsyncAPIResource
from .investigate import (
InvestigateResource,
Expand All @@ -38,10 +30,6 @@ class EmailSecurityResource(SyncAPIResource):
def investigate(self) -> InvestigateResource:
return InvestigateResource(self._client)

@cached_property
def phishguard(self) -> PhishguardResource:
return PhishguardResource(self._client)

@cached_property
def settings(self) -> SettingsResource:
return SettingsResource(self._client)
Expand Down Expand Up @@ -71,10 +59,6 @@ class AsyncEmailSecurityResource(AsyncAPIResource):
def investigate(self) -> AsyncInvestigateResource:
return AsyncInvestigateResource(self._client)

@cached_property
def phishguard(self) -> AsyncPhishguardResource:
return AsyncPhishguardResource(self._client)

@cached_property
def settings(self) -> AsyncSettingsResource:
return AsyncSettingsResource(self._client)
Expand Down Expand Up @@ -107,10 +91,6 @@ def __init__(self, email_security: EmailSecurityResource) -> None:
def investigate(self) -> InvestigateResourceWithRawResponse:
return InvestigateResourceWithRawResponse(self._email_security.investigate)

@cached_property
def phishguard(self) -> PhishguardResourceWithRawResponse:
return PhishguardResourceWithRawResponse(self._email_security.phishguard)

@cached_property
def settings(self) -> SettingsResourceWithRawResponse:
return SettingsResourceWithRawResponse(self._email_security.settings)
Expand All @@ -124,10 +104,6 @@ def __init__(self, email_security: AsyncEmailSecurityResource) -> None:
def investigate(self) -> AsyncInvestigateResourceWithRawResponse:
return AsyncInvestigateResourceWithRawResponse(self._email_security.investigate)

@cached_property
def phishguard(self) -> AsyncPhishguardResourceWithRawResponse:
return AsyncPhishguardResourceWithRawResponse(self._email_security.phishguard)

@cached_property
def settings(self) -> AsyncSettingsResourceWithRawResponse:
return AsyncSettingsResourceWithRawResponse(self._email_security.settings)
Expand All @@ -141,10 +117,6 @@ def __init__(self, email_security: EmailSecurityResource) -> None:
def investigate(self) -> InvestigateResourceWithStreamingResponse:
return InvestigateResourceWithStreamingResponse(self._email_security.investigate)

@cached_property
def phishguard(self) -> PhishguardResourceWithStreamingResponse:
return PhishguardResourceWithStreamingResponse(self._email_security.phishguard)

@cached_property
def settings(self) -> SettingsResourceWithStreamingResponse:
return SettingsResourceWithStreamingResponse(self._email_security.settings)
Expand All @@ -158,10 +130,6 @@ def __init__(self, email_security: AsyncEmailSecurityResource) -> None:
def investigate(self) -> AsyncInvestigateResourceWithStreamingResponse:
return AsyncInvestigateResourceWithStreamingResponse(self._email_security.investigate)

@cached_property
def phishguard(self) -> AsyncPhishguardResourceWithStreamingResponse:
return AsyncPhishguardResourceWithStreamingResponse(self._email_security.phishguard)

@cached_property
def settings(self) -> AsyncSettingsResourceWithStreamingResponse:
return AsyncSettingsResourceWithStreamingResponse(self._email_security.settings)
199 changes: 0 additions & 199 deletions src/cloudflare/resources/email_security/phishguard.py

This file was deleted.

14 changes: 0 additions & 14 deletions src/cloudflare/resources/email_security/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@
BlockSendersResourceWithStreamingResponse,
AsyncBlockSendersResourceWithStreamingResponse,
)
from .allow_patterns import (
AllowPatternsResource,
AsyncAllowPatternsResource,
AllowPatternsResourceWithRawResponse,
AsyncAllowPatternsResourceWithRawResponse,
AllowPatternsResourceWithStreamingResponse,
AsyncAllowPatternsResourceWithStreamingResponse,
)
from .trusted_domains import (
TrustedDomainsResource,
AsyncTrustedDomainsResource,
Expand All @@ -50,12 +42,6 @@
)

__all__ = [
"AllowPatternsResource",
"AsyncAllowPatternsResource",
"AllowPatternsResourceWithRawResponse",
"AsyncAllowPatternsResourceWithRawResponse",
"AllowPatternsResourceWithStreamingResponse",
"AsyncAllowPatternsResourceWithStreamingResponse",
"BlockSendersResource",
"AsyncBlockSendersResource",
"BlockSendersResourceWithRawResponse",
Expand Down
Loading

0 comments on commit bfd27f8

Please sign in to comment.