Skip to content

Commit 5d9961c

Browse files
feat(brand_protection): Add new routes
1 parent af37d2f commit 5d9961c

6 files changed

Lines changed: 34 additions & 14 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1761
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b5f6a17157fe19892f8737208ed142c4d431d81cfe0d13bedc16a8213cc58f32.yml
33
openapi_spec_hash: 956f10079edd2cb55bd255500a85ccb3
4-
config_hash: 1d47998f5beedb88688bf4a0e549b14b
4+
config_hash: 150f1595200b5d085e0c40682eb2010b

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3371,8 +3371,8 @@ from cloudflare.types.brand_protection import (
33713371

33723372
Methods:
33733373

3374-
- <code title="post /accounts/{account_id}/brand-protection/submit">client.brand_protection.<a href="./src/cloudflare/resources/brand_protection.py">submit</a>(\*, account_id, \*\*<a href="src/cloudflare/types/brand_protection/brand_protection_submit_params.py">params</a>) -> <a href="./src/cloudflare/types/brand_protection/submit.py">Optional[Submit]</a></code>
3375-
- <code title="get /accounts/{account_id}/brand-protection/url-info">client.brand_protection.<a href="./src/cloudflare/resources/brand_protection.py">url_info</a>(\*, account_id, \*\*<a href="src/cloudflare/types/brand_protection/brand_protection_url_info_params.py">params</a>) -> <a href="./src/cloudflare/types/brand_protection/info.py">Optional[Info]</a></code>
3374+
- <code title="post /accounts/{account_id}/brand-protection/submit">client.brand_protection.<a href="./src/cloudflare/resources/brand_protection/brand_protection.py">submit</a>(\*, account_id, \*\*<a href="src/cloudflare/types/brand_protection/brand_protection_submit_params.py">params</a>) -> <a href="./src/cloudflare/types/brand_protection/submit.py">Optional[Submit]</a></code>
3375+
- <code title="get /accounts/{account_id}/brand-protection/url-info">client.brand_protection.<a href="./src/cloudflare/resources/brand_protection/brand_protection.py">url_info</a>(\*, account_id, \*\*<a href="src/cloudflare/types/brand_protection/brand_protection_url_info_params.py">params</a>) -> <a href="./src/cloudflare/types/brand_protection/info.py">Optional[Info]</a></code>
33763376

33773377
# Diagnostics
33783378

src/cloudflare/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170
from .resources.billing.billing import BillingResource, AsyncBillingResource
171171
from .resources.logpush.logpush import LogpushResource, AsyncLogpushResource
172172
from .resources.workers.workers import WorkersResource, AsyncWorkersResource
173-
from .resources.brand_protection import BrandProtectionResource, AsyncBrandProtectionResource
174173
from .resources.accounts.accounts import AccountsResource, AsyncAccountsResource
175174
from .resources.alerting.alerting import AlertingResource, AsyncAlertingResource
176175
from .resources.firewall.firewall import FirewallResource, AsyncFirewallResource
@@ -214,6 +213,7 @@
214213
from .resources.durable_objects.durable_objects import DurableObjectsResource, AsyncDurableObjectsResource
215214
from .resources.request_tracers.request_tracers import RequestTracersResource, AsyncRequestTracersResource
216215
from .resources.security_center.security_center import SecurityCenterResource, AsyncSecurityCenterResource
216+
from .resources.brand_protection.brand_protection import BrandProtectionResource, AsyncBrandProtectionResource
217217
from .resources.content_scanning.content_scanning import ContentScanningResource, AsyncContentScanningResource
218218
from .resources.custom_hostnames.custom_hostnames import CustomHostnamesResource, AsyncCustomHostnamesResource
219219
from .resources.resource_sharing.resource_sharing import ResourceSharingResource, AsyncResourceSharingResource
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .brand_protection import (
4+
BrandProtectionResource,
5+
AsyncBrandProtectionResource,
6+
BrandProtectionResourceWithRawResponse,
7+
AsyncBrandProtectionResourceWithRawResponse,
8+
BrandProtectionResourceWithStreamingResponse,
9+
AsyncBrandProtectionResourceWithStreamingResponse,
10+
)
11+
12+
__all__ = [
13+
"BrandProtectionResource",
14+
"AsyncBrandProtectionResource",
15+
"BrandProtectionResourceWithRawResponse",
16+
"AsyncBrandProtectionResourceWithRawResponse",
17+
"BrandProtectionResourceWithStreamingResponse",
18+
"AsyncBrandProtectionResourceWithStreamingResponse",
19+
]

src/cloudflare/resources/brand_protection.py renamed to src/cloudflare/resources/brand_protection/brand_protection.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66

77
import httpx
88

9-
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10-
from .._utils import maybe_transform, async_maybe_transform
11-
from .._compat import cached_property
12-
from .._resource import SyncAPIResource, AsyncAPIResource
13-
from .._response import (
9+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10+
from ..._utils import maybe_transform, async_maybe_transform
11+
from ..._compat import cached_property
12+
from ..._resource import SyncAPIResource, AsyncAPIResource
13+
from ..._response import (
1414
to_raw_response_wrapper,
1515
to_streamed_response_wrapper,
1616
async_to_raw_response_wrapper,
1717
async_to_streamed_response_wrapper,
1818
)
19-
from .._wrappers import ResultWrapper
20-
from .._base_client import make_request_options
21-
from ..types.brand_protection import brand_protection_submit_params, brand_protection_url_info_params
22-
from ..types.brand_protection.info import Info
23-
from ..types.brand_protection.submit import Submit
19+
from ..._wrappers import ResultWrapper
20+
from ..._base_client import make_request_options
21+
from ...types.brand_protection import brand_protection_submit_params, brand_protection_url_info_params
22+
from ...types.brand_protection.info import Info
23+
from ...types.brand_protection.submit import Submit
2424

2525
__all__ = ["BrandProtectionResource", "AsyncBrandProtectionResource"]
2626

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

0 commit comments

Comments
 (0)