Skip to content

Commit 947dd45

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#269)
1 parent 7006adb commit 947dd45

31 files changed

+137
-178
lines changed

api.md

+17-54
Original file line numberDiff line numberDiff line change
@@ -3759,11 +3759,7 @@ Methods:
37593759
Types:
37603760

37613761
```python
3762-
from cloudflare.types import (
3763-
HealthCheck,
3764-
HealthCheckType,
3765-
UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5,
3766-
)
3762+
from cloudflare.types import HealthCheck, HealthCheckRate, HealthCheckType
37673763
```
37683764

37693765
## CfInterconnects
@@ -3967,10 +3963,7 @@ Methods:
39673963
Types:
39683964

39693965
```python
3970-
from cloudflare.types.magic_network_monitoring import (
3971-
Configuration,
3972-
UnnamedSchemaRef621ca3f6ea9a96427c902b0d14279ff8,
3973-
)
3966+
from cloudflare.types.magic_network_monitoring import Configuration
39743967
```
39753968

39763969
Methods:
@@ -3992,10 +3985,7 @@ Methods:
39923985
Types:
39933986

39943987
```python
3995-
from cloudflare.types.magic_network_monitoring import (
3996-
MagicNetworkMonitoringRule,
3997-
UnnamedSchemaRef99ba74ba6027c3c87ca03d4e81cfc16d,
3998-
)
3988+
from cloudflare.types.magic_network_monitoring import MagicNetworkMonitoringRule
39993989
```
40003990

40013991
Methods:
@@ -4198,13 +4188,7 @@ Methods:
41984188
Types:
41994189

42004190
```python
4201-
from cloudflare.types.rules import (
4202-
Hostname,
4203-
List,
4204-
Redirect,
4205-
UnnamedSchemaRefE706d5e8367564544e2991af82ebb07a,
4206-
ListDeleteResponse,
4207-
)
4191+
from cloudflare.types.rules import Hostname, List, Redirect, ListDeleteResponse
42084192
```
42094193

42104194
Methods:
@@ -4220,10 +4204,7 @@ Methods:
42204204
Types:
42214205

42224206
```python
4223-
from cloudflare.types.rules.lists import (
4224-
UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd,
4225-
BulkOperationGetResponse,
4226-
)
4207+
from cloudflare.types.rules.lists import OperationStatus, BulkOperationGetResponse
42274208
```
42284209

42294210
Methods:
@@ -4236,8 +4217,8 @@ Types:
42364217

42374218
```python
42384219
from cloudflare.types.rules.lists import (
4239-
UnnamedSchemaRef34bb6e31800bc0207c083affa12d2775,
4240-
UnnamedSchemaRef46621d4d5b6644caae5c9167b8e28865,
4220+
ListCursor,
4221+
ListItem,
42414222
ItemCreateResponse,
42424223
ItemUpdateResponse,
42434224
ItemListResponse,
@@ -4261,11 +4242,7 @@ Methods:
42614242
Types:
42624243

42634244
```python
4264-
from cloudflare.types.storage import (
4265-
Components,
4266-
Schema,
4267-
UnnamedSchemaRef608bee5065f7314d6fa572b89a1910f7,
4268-
)
4245+
from cloudflare.types.storage import Components, Schema
42694246
```
42704247

42714248
Methods:
@@ -4490,7 +4467,7 @@ Methods:
44904467
Types:
44914468

44924469
```python
4493-
from cloudflare.types import UnnamedSchemaRefD6e23adacaca017802aaa484a8b3f405
4470+
from cloudflare.types import Alert
44944471
```
44954472

44964473
## AvailableAlerts
@@ -4753,9 +4730,9 @@ Types:
47534730

47544731
```python
47554732
from cloudflare.types.zero_trust.devices import (
4733+
DEXTest,
47564734
SchemaData,
47574735
SchemaHTTP,
4758-
UnnamedSchemaRef15fd6ef0641450fd873ffb71715170c9,
47594736
DEXTestDeleteResponse,
47604737
)
47614738
```
@@ -4773,11 +4750,7 @@ Methods:
47734750
Types:
47744751

47754752
```python
4776-
from cloudflare.types.zero_trust.devices import (
4777-
DeviceNetwork,
4778-
UnnamedSchemaRefD2b048663faf5e0cd5c90501b71171de,
4779-
NetworkDeleteResponse,
4780-
)
4753+
from cloudflare.types.zero_trust.devices import DeviceNetwork, NetworkDeleteResponse
47814754
```
47824755

47834756
Methods:
@@ -4793,11 +4766,7 @@ Methods:
47934766
Types:
47944767

47954768
```python
4796-
from cloudflare.types.zero_trust.devices import (
4797-
SettingsPolicy,
4798-
UnnamedSchemaRefF636ff9f2cb41ff4b715cf8ed8515581,
4799-
PolicyDeleteResponse,
4800-
)
4769+
from cloudflare.types.zero_trust.devices import SettingsPolicy, PolicyDeleteResponse
48014770
```
48024771

48034772
Methods:
@@ -4827,7 +4796,6 @@ Types:
48274796
```python
48284797
from cloudflare.types.zero_trust.devices.policies import (
48294798
SplitTunnelExclude,
4830-
UnnamedSchemaRef0462afe1a32ee90b1999d4277af59fa8,
48314799
ExcludeUpdateResponse,
48324800
ExcludeGetResponse,
48334801
)
@@ -4846,7 +4814,7 @@ Types:
48464814
```python
48474815
from cloudflare.types.zero_trust.devices.policies import (
48484816
FallbackDomain,
4849-
UnnamedSchemaRef1fbf91ecd61792c751fead58dc8005e6,
4817+
FallbackDomainPolicy,
48504818
FallbackDomainUpdateResponse,
48514819
FallbackDomainGetResponse,
48524820
)
@@ -4865,7 +4833,6 @@ Types:
48654833
```python
48664834
from cloudflare.types.zero_trust.devices.policies import (
48674835
SplitTunnelInclude,
4868-
UnnamedSchemaRef5e0c6134a624678286f4a424b001870a,
48694836
IncludeUpdateResponse,
48704837
IncludeGetResponse,
48714838
)
@@ -4886,9 +4853,6 @@ from cloudflare.types.zero_trust.devices import (
48864853
DeviceInput,
48874854
DeviceMatch,
48884855
DevicePostureRule,
4889-
UnnamedSchemaRef34ef0ad73a63c3f76ed170adca181930,
4890-
UnnamedSchemaRef41885dd46b9e0294254c49305a273681,
4891-
UnnamedSchemaRef9e35ef84511131488ae286ce78ac4b27,
48924856
PostureDeleteResponse,
48934857
)
48944858
```
@@ -4906,11 +4870,7 @@ Methods:
49064870
Types:
49074871

49084872
```python
4909-
from cloudflare.types.zero_trust.devices.posture import (
4910-
Integration,
4911-
UnnamedSchemaRefB84b377dfc9454d455b646d4bc9ab507,
4912-
IntegrationDeleteResponse,
4913-
)
4873+
from cloudflare.types.zero_trust.devices.posture import Integration, IntegrationDeleteResponse
49144874
```
49154875

49164876
Methods:
@@ -5043,6 +5003,9 @@ from cloudflare.types.zero_trust.access import (
50435003
Application,
50445004
CorsHeaders,
50455005
CustomPagesh,
5006+
SaasAppNameFormat,
5007+
SaasAppNameIDFormat,
5008+
SaasAppSource,
50465009
SAMLSaasApp,
50475010
SelfHostedDomainsh,
50485011
ApplicationDeleteResponse,

src/cloudflare/_utils/_proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class LazyProxy(Generic[T], ABC):
1111
"""Implements data methods to pretend that an instance is another instance.
1212
13-
This includes forwarding attribute access and othe methods.
13+
This includes forwarding attribute access and other methods.
1414
"""
1515

1616
# Note: we have to special case proxies that themselves return proxies

src/cloudflare/types/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
from .additional_routes import AdditionalRoutes as AdditionalRoutes
9393
from .cookie_attributes import CookieAttributes as CookieAttributes
9494
from .custom_nameserver import CustomNameserver as CustomNameserver
95+
from .health_check_rate import HealthCheckRate as HealthCheckRate
9596
from .health_check_type import HealthCheckType as HealthCheckType
9697
from .lighthouse_report import LighthouseReport as LighthouseReport
9798
from .location_strategy import LocationStrategy as LocationStrategy
@@ -356,6 +357,3 @@
356357
from .unnamed_schema_ref_c5858f1f916a921846e0b6159af470a7 import (
357358
UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 as UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7,
358359
)
359-
from .unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import (
360-
UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5 as UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5,
361-
)

src/cloudflare/types/health_check.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
7+
from .health_check_rate import HealthCheckRate
78
from .health_check_type import HealthCheckType
8-
from .unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
99

1010
__all__ = ["HealthCheck"]
1111

@@ -24,7 +24,7 @@ class HealthCheck(BaseModel):
2424
enabled: Optional[bool] = None
2525
"""Determines whether to run healthchecks for a tunnel."""
2626

27-
rate: Optional[UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5] = None
27+
rate: Optional[HealthCheckRate] = None
2828
"""How frequent the health check is run. The default value is `mid`."""
2929

3030
target: Optional[str] = None

src/cloudflare/types/health_check_param.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from typing_extensions import Literal, TypedDict
66

7+
from .health_check_rate import HealthCheckRate
78
from .health_check_type import HealthCheckType
8-
from .unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
99

1010
__all__ = ["HealthCheckParam"]
1111

@@ -24,7 +24,7 @@ class HealthCheckParam(TypedDict, total=False):
2424
enabled: bool
2525
"""Determines whether to run healthchecks for a tunnel."""
2626

27-
rate: UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
27+
rate: HealthCheckRate
2828
"""How frequent the health check is run. The default value is `mid`."""
2929

3030
target: str
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal
4+
5+
__all__ = ["HealthCheckRate"]
6+
7+
HealthCheckRate = Literal["low", "mid", "high"]

src/cloudflare/types/magic_transit/cf_interconnect_list_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from datetime import datetime
55

66
from ..._models import BaseModel
7+
from ..health_check_rate import HealthCheckRate
78
from ..health_check_type import HealthCheckType
8-
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
99

1010
__all__ = ["CfInterconnectListResponse", "Interconnect", "InterconnectGRE", "InterconnectHealthCheck"]
1111

@@ -22,7 +22,7 @@ class InterconnectHealthCheck(BaseModel):
2222
enabled: Optional[bool] = None
2323
"""Determines whether to run healthchecks for a tunnel."""
2424

25-
rate: Optional[UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5] = None
25+
rate: Optional[HealthCheckRate] = None
2626
"""How frequent the health check is run. The default value is `mid`."""
2727

2828
target: Optional[str] = None

src/cloudflare/types/magic_transit/cf_interconnect_update_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from typing_extensions import Required, TypedDict
66

7+
from ..health_check_rate import HealthCheckRate
78
from ..health_check_type import HealthCheckType
8-
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
99

1010
__all__ = ["CfInterconnectUpdateParams", "GRE", "HealthCheck"]
1111

@@ -48,7 +48,7 @@ class HealthCheck(TypedDict, total=False):
4848
enabled: bool
4949
"""Determines whether to run healthchecks for a tunnel."""
5050

51-
rate: UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
51+
rate: HealthCheckRate
5252
"""How frequent the health check is run. The default value is `mid`."""
5353

5454
target: str

src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from ..._models import BaseModel
77
from .psk_metadata import PSKMetadata
8+
from ..health_check_rate import HealthCheckRate
89
from ..health_check_type import HealthCheckType
9-
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
1010

1111
__all__ = ["IPSECTunnelCreateResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"]
1212

@@ -15,7 +15,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
1515
enabled: Optional[bool] = None
1616
"""Determines whether to run healthchecks for a tunnel."""
1717

18-
rate: Optional[UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5] = None
18+
rate: Optional[HealthCheckRate] = None
1919
"""How frequent the health check is run. The default value is `mid`."""
2020

2121
target: Optional[str] = None

src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from ..._models import BaseModel
77
from .psk_metadata import PSKMetadata
8+
from ..health_check_rate import HealthCheckRate
89
from ..health_check_type import HealthCheckType
9-
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
1010

1111
__all__ = ["IPSECTunnelListResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"]
1212

@@ -15,7 +15,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
1515
enabled: Optional[bool] = None
1616
"""Determines whether to run healthchecks for a tunnel."""
1717

18-
rate: Optional[UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5] = None
18+
rate: Optional[HealthCheckRate] = None
1919
"""How frequent the health check is run. The default value is `mid`."""
2020

2121
target: Optional[str] = None

src/cloudflare/types/rules/lists/__init__.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
from __future__ import annotations
44

5+
from .list_cursor import ListCursor as ListCursor
56
from .item_list_params import ItemListParams as ItemListParams
7+
from .operation_status import OperationStatus as OperationStatus
68
from .item_get_response import ItemGetResponse as ItemGetResponse
79
from .item_create_params import ItemCreateParams as ItemCreateParams
810
from .item_delete_params import ItemDeleteParams as ItemDeleteParams
@@ -11,9 +13,3 @@
1113
from .item_delete_response import ItemDeleteResponse as ItemDeleteResponse
1214
from .item_update_response import ItemUpdateResponse as ItemUpdateResponse
1315
from .bulk_operation_get_response import BulkOperationGetResponse as BulkOperationGetResponse
14-
from .unnamed_schema_ref_34bb6e31800bc0207c083affa12d2775 import (
15-
UnnamedSchemaRef34bb6e31800bc0207c083affa12d2775 as UnnamedSchemaRef34bb6e31800bc0207c083affa12d2775,
16-
)
17-
from .unnamed_schema_ref_cc279fb99baf6a166db5c4e790a8c6cd import (
18-
UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd as UnnamedSchemaRefCc279fb99baf6a166db5c4e790a8c6cd,
19-
)
+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from ...._models import BaseModel
66

7-
__all__ = ["UnnamedSchemaRef34bb6e31800bc0207c083affa12d2775"]
7+
__all__ = ["ListCursor"]
88

99

10-
class UnnamedSchemaRef34bb6e31800bc0207c083affa12d2775(BaseModel):
10+
class ListCursor(BaseModel):
1111
after: Optional[str] = None
1212

1313
before: Optional[str] = None
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal
4+
5+
__all__ = ["OperationStatus"]
6+
7+
OperationStatus = Literal["pending", "running", "completed", "failed"]

src/cloudflare/types/rules/lists/unnamed_schema_ref_cc279fb99baf6a166db5c4e790a8c6cd.py

-7
This file was deleted.

src/cloudflare/types/storage/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@
66
from .components import Components as Components
77
from .analytics_list_params import AnalyticsListParams as AnalyticsListParams
88
from .analytics_stored_params import AnalyticsStoredParams as AnalyticsStoredParams
9-
from .unnamed_schema_ref_608bee5065f7314d6fa572b89a1910f7 import (
10-
UnnamedSchemaRef608bee5065f7314d6fa572b89a1910f7 as UnnamedSchemaRef608bee5065f7314d6fa572b89a1910f7,
11-
)

0 commit comments

Comments
 (0)