Skip to content

Commit 794ddc0

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

29 files changed

+101
-163
lines changed

api.md

+11-25
Original file line numberDiff line numberDiff line change
@@ -5047,7 +5047,10 @@ Methods:
50475047
Types:
50485048

50495049
```python
5050-
from cloudflare.types.zero_trust.access.applications import UserPolicyCheckListResponse
5050+
from cloudflare.types.zero_trust.access.applications import (
5051+
UserPolicyCheckGeo,
5052+
UserPolicyCheckListResponse,
5053+
)
50515054
```
50525055

50535056
Methods:
@@ -5285,11 +5288,7 @@ Methods:
52855288
Types:
52865289

52875290
```python
5288-
from cloudflare.types.zero_trust import (
5289-
NetworkPath,
5290-
Percentiles,
5291-
UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11,
5292-
)
5291+
from cloudflare.types.zero_trust import DeviceExperienceMonitor, NetworkPath, Percentiles
52935292
```
52945293

52955294
### Colos
@@ -5665,10 +5664,10 @@ from cloudflare.types.zero_trust.gateway import (
56655664
CustomCertificateSettings,
56665665
ExtendedEmailMatching,
56675666
FipsSettings,
5667+
GatewayConfigurationSettings,
56685668
NotificationSettings,
56695669
ProtocolDetection,
56705670
TLSSettings,
5671-
UnnamedSchemaRef055aaf3918bf29f81c09d394a864182e,
56725671
ConfigurationUpdateResponse,
56735672
ConfigurationEditResponse,
56745673
ConfigurationGetResponse,
@@ -5723,12 +5722,7 @@ Methods:
57235722
Types:
57245723

57255724
```python
5726-
from cloudflare.types.zero_trust.gateway import (
5727-
Location,
5728-
LocationNetwork,
5729-
UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66,
5730-
LocationDeleteResponse,
5731-
)
5725+
from cloudflare.types.zero_trust.gateway import Location, LocationNetwork, LocationDeleteResponse
57325726
```
57335727

57345728
Methods:
@@ -5744,10 +5738,7 @@ Methods:
57445738
Types:
57455739

57465740
```python
5747-
from cloudflare.types.zero_trust.gateway import (
5748-
LoggingSetting,
5749-
UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7b,
5750-
)
5741+
from cloudflare.types.zero_trust.gateway import LoggingSetting
57515742
```
57525743

57535744
Methods:
@@ -5763,7 +5754,6 @@ Types:
57635754
from cloudflare.types.zero_trust.gateway import (
57645755
GatewayIPs,
57655756
ProxyEndpoint,
5766-
UnnamedSchemaRef4753ee81779d0e57189420079abab61e,
57675757
ProxyEndpointDeleteResponse,
57685758
)
57695759
```
@@ -5807,11 +5797,7 @@ Methods:
58075797
Types:
58085798

58095799
```python
5810-
from cloudflare.types.zero_trust.networks import (
5811-
Route,
5812-
Teamnet,
5813-
UnnamedSchemaRefC125d35cbb7f93aab989cd19bd764ed6,
5814-
)
5800+
from cloudflare.types.zero_trust.networks import NetworkRoute, Route, Teamnet
58155801
```
58165802

58175803
Methods:
@@ -5982,8 +5968,8 @@ Types:
59825968

59835969
```python
59845970
from cloudflare.types.url_scanner import (
5985-
UnnamedSchemaRef3750739f772bbdf0bb00d6634ccc0631,
5986-
UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6,
5971+
URLScannerDomain,
5972+
URLScannerTask,
59875973
ScanCreateResponse,
59885974
ScanGetResponse,
59895975
ScanHarResponse,

src/cloudflare/resources/zero_trust/gateway/configurations.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ConfigurationGetResponse,
2828
ConfigurationEditResponse,
2929
ConfigurationUpdateResponse,
30-
UnnamedSchemaRef055aaf3918bf29f81c09d394a864182eParam,
30+
GatewayConfigurationSettingsParam,
3131
configuration_edit_params,
3232
configuration_update_params,
3333
)
@@ -48,7 +48,7 @@ def update(
4848
self,
4949
*,
5050
account_id: str,
51-
settings: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182eParam | NotGiven = NOT_GIVEN,
51+
settings: GatewayConfigurationSettingsParam | NotGiven = NOT_GIVEN,
5252
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5353
# The extra values given here take precedence over values defined on the client or passed to this method.
5454
extra_headers: Headers | None = None,
@@ -89,7 +89,7 @@ def edit(
8989
self,
9090
*,
9191
account_id: str,
92-
settings: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182eParam | NotGiven = NOT_GIVEN,
92+
settings: GatewayConfigurationSettingsParam | NotGiven = NOT_GIVEN,
9393
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9494
# The extra values given here take precedence over values defined on the client or passed to this method.
9595
extra_headers: Headers | None = None,
@@ -182,7 +182,7 @@ async def update(
182182
self,
183183
*,
184184
account_id: str,
185-
settings: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182eParam | NotGiven = NOT_GIVEN,
185+
settings: GatewayConfigurationSettingsParam | NotGiven = NOT_GIVEN,
186186
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
187187
# The extra values given here take precedence over values defined on the client or passed to this method.
188188
extra_headers: Headers | None = None,
@@ -225,7 +225,7 @@ async def edit(
225225
self,
226226
*,
227227
account_id: str,
228-
settings: UnnamedSchemaRef055aaf3918bf29f81c09d394a864182eParam | NotGiven = NOT_GIVEN,
228+
settings: GatewayConfigurationSettingsParam | NotGiven = NOT_GIVEN,
229229
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
230230
# The extra values given here take precedence over values defined on the client or passed to this method.
231231
extra_headers: Headers | None = None,

src/cloudflare/resources/zero_trust/gateway/logging.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
from ...._base_client import (
2424
make_request_options,
2525
)
26-
from ....types.zero_trust.gateway import (
27-
LoggingSetting,
28-
UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7bParam,
29-
logging_update_params,
30-
)
26+
from ....types.zero_trust.gateway import LoggingSetting, logging_update_params
3127

3228
__all__ = ["Logging", "AsyncLogging"]
3329

@@ -46,7 +42,7 @@ def update(
4642
*,
4743
account_id: str,
4844
redact_pii: bool | NotGiven = NOT_GIVEN,
49-
settings_by_rule_type: UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7bParam | NotGiven = NOT_GIVEN,
45+
settings_by_rule_type: logging_update_params.SettingsByRuleType | NotGiven = NOT_GIVEN,
5046
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5147
# The extra values given here take precedence over values defined on the client or passed to this method.
5248
extra_headers: Headers | None = None,
@@ -144,7 +140,7 @@ async def update(
144140
*,
145141
account_id: str,
146142
redact_pii: bool | NotGiven = NOT_GIVEN,
147-
settings_by_rule_type: UnnamedSchemaRefE86eeb84b7e922c35cfb0031a6309f7bParam | NotGiven = NOT_GIVEN,
143+
settings_by_rule_type: logging_update_params.SettingsByRuleType | NotGiven = NOT_GIVEN,
148144
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
149145
# The extra values given here take precedence over values defined on the client or passed to this method.
150146
extra_headers: Headers | None = None,

src/cloudflare/types/url_scanner/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from .scan_get_response import ScanGetResponse as ScanGetResponse
66
from .scan_har_response import ScanHarResponse as ScanHarResponse
77
from .scan_create_params import ScanCreateParams as ScanCreateParams
8+
from .url_scanner_domain import URLScannerDomain as URLScannerDomain
89
from .scan_create_response import ScanCreateResponse as ScanCreateResponse
910
from .scan_screenshot_params import ScanScreenshotParams as ScanScreenshotParams
10-
from .unnamed_schema_ref_6d7a78acccfc753a8e931b1c4e72b6a6 import (
11-
UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6 as UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6,
12-
)

src/cloudflare/types/url_scanner/scan_get_response.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from ..._models import BaseModel
99
from ..radar.http import Browser
10-
from .unnamed_schema_ref_6d7a78acccfc753a8e931b1c4e72b6a6 import UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6
10+
from .url_scanner_domain import URLScannerDomain
1111

1212
__all__ = [
1313
"ScanGetResponse",
@@ -78,7 +78,7 @@ class ScanMetaProcessorsCategoriesRisk(BaseModel):
7878

7979

8080
class ScanMetaProcessorsCategories(BaseModel):
81-
content: List[UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6]
81+
content: List[URLScannerDomain]
8282

8383
risks: List[ScanMetaProcessorsCategoriesRisk]
8484

@@ -401,19 +401,19 @@ class ScanASNs(BaseModel):
401401

402402

403403
class ScanDomainsExampleComCategoriesInherited(BaseModel):
404-
content: Optional[List[UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6]] = None
404+
content: Optional[List[URLScannerDomain]] = None
405405

406406
from_: Optional[str] = FieldInfo(alias="from", default=None)
407407

408-
risks: Optional[List[UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6]] = None
408+
risks: Optional[List[URLScannerDomain]] = None
409409

410410

411411
class ScanDomainsExampleComCategories(BaseModel):
412412
inherited: ScanDomainsExampleComCategoriesInherited
413413

414-
content: Optional[List[UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6]] = None
414+
content: Optional[List[URLScannerDomain]] = None
415415

416-
risks: Optional[List[UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6]] = None
416+
risks: Optional[List[URLScannerDomain]] = None
417417

418418

419419
class ScanDomainsExampleComDNS(BaseModel):

src/cloudflare/types/url_scanner/unnamed_schema_ref_6d7a78acccfc753a8e931b1c4e72b6a6.py src/cloudflare/types/url_scanner/url_scanner_domain.py

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

55
from ..._models import BaseModel
66

7-
__all__ = ["UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6"]
7+
__all__ = ["URLScannerDomain"]
88

99

10-
class UnnamedSchemaRef6d7a78acccfc753a8e931b1c4e72b6a6(BaseModel):
10+
class URLScannerDomain(BaseModel):
1111
id: int
1212

1313
name: str

src/cloudflare/types/zero_trust/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from .gateway_list_response import GatewayListResponse as GatewayListResponse
2929
from .identity_provider_type import IdentityProviderType as IdentityProviderType
3030
from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse
31+
from .device_experience_monitor import DeviceExperienceMonitor as DeviceExperienceMonitor
3132
from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam
3233
from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams
3334
from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams
@@ -40,6 +41,3 @@
4041
from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse
4142
from .connectivity_setting_edit_response import ConnectivitySettingEditResponse as ConnectivitySettingEditResponse
4243
from .organization_revoke_users_response import OrganizationRevokeUsersResponse as OrganizationRevokeUsersResponse
43-
from .unnamed_schema_ref_bf9e2abcf1b78a6cab8e6e29e2228a11 import (
44-
UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11 as UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11,
45-
)

src/cloudflare/types/zero_trust/access/applications/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
from .approval_group_param import ApprovalGroupParam as ApprovalGroupParam
1313
from .policy_create_params import PolicyCreateParams as PolicyCreateParams
1414
from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams
15+
from .user_policy_check_geo import UserPolicyCheckGeo as UserPolicyCheckGeo
1516
from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse
1617
from .user_policy_check_list_response import UserPolicyCheckListResponse as UserPolicyCheckListResponse
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
5+
from ....._models import BaseModel
6+
7+
__all__ = ["UserPolicyCheckGeo"]
8+
9+
10+
class UserPolicyCheckGeo(BaseModel):
11+
country: Optional[str] = None

src/cloudflare/types/zero_trust/access/applications/user_policy_check_list_response.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from typing import List, Optional
44

55
from ....._models import BaseModel
6+
from .user_policy_check_geo import UserPolicyCheckGeo
67

7-
__all__ = ["UserPolicyCheckListResponse", "AppState", "UserIdentity", "UserIdentityGeo"]
8+
__all__ = ["UserPolicyCheckListResponse", "AppState", "UserIdentity"]
89

910

1011
class AppState(BaseModel):
@@ -22,10 +23,6 @@ class AppState(BaseModel):
2223
status: Optional[str] = None
2324

2425

25-
class UserIdentityGeo(BaseModel):
26-
country: Optional[str] = None
27-
28-
2926
class UserIdentity(BaseModel):
3027
id: Optional[str] = None
3128

@@ -35,7 +32,7 @@ class UserIdentity(BaseModel):
3532

3633
email: Optional[str] = None
3734

38-
geo: Optional[UserIdentityGeo] = None
35+
geo: Optional[UserPolicyCheckGeo] = None
3936

4037
iat: Optional[int] = None
4138

src/cloudflare/types/zero_trust/access/users/active_session_get_response.py

+3-14
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,9 @@
55
from pydantic import Field as FieldInfo
66

77
from ....._models import BaseModel
8+
from ..applications import UserPolicyCheckGeo
89

9-
__all__ = [
10-
"ActiveSessionGetResponse",
11-
"DeviceSessions",
12-
"DevicePosture",
13-
"DevicePostureCheck",
14-
"Geo",
15-
"IDP",
16-
"MTLSAuth",
17-
]
10+
__all__ = ["ActiveSessionGetResponse", "DeviceSessions", "DevicePosture", "DevicePostureCheck", "IDP", "MTLSAuth"]
1811

1912

2013
class DeviceSessions(BaseModel):
@@ -47,10 +40,6 @@ class DevicePosture(BaseModel):
4740
type: Optional[str] = None
4841

4942

50-
class Geo(BaseModel):
51-
country: Optional[str] = None
52-
53-
5443
class IDP(BaseModel):
5544
id: Optional[str] = None
5645

@@ -84,7 +73,7 @@ class ActiveSessionGetResponse(BaseModel):
8473

8574
email: Optional[str] = None
8675

87-
geo: Optional[Geo] = None
76+
geo: Optional[UserPolicyCheckGeo] = None
8877

8978
iat: Optional[float] = None
9079

src/cloudflare/types/zero_trust/access/users/identity.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from pydantic import Field as FieldInfo
66

77
from ....._models import BaseModel
8+
from ..applications import UserPolicyCheckGeo
89

9-
__all__ = ["Identity", "DeviceSessions", "DevicePosture", "DevicePostureCheck", "Geo", "IDP", "MTLSAuth"]
10+
__all__ = ["Identity", "DeviceSessions", "DevicePosture", "DevicePostureCheck", "IDP", "MTLSAuth"]
1011

1112

1213
class DeviceSessions(BaseModel):
@@ -39,10 +40,6 @@ class DevicePosture(BaseModel):
3940
type: Optional[str] = None
4041

4142

42-
class Geo(BaseModel):
43-
country: Optional[str] = None
44-
45-
4643
class IDP(BaseModel):
4744
id: Optional[str] = None
4845

@@ -76,7 +73,7 @@ class Identity(BaseModel):
7673

7774
email: Optional[str] = None
7875

79-
geo: Optional[Geo] = None
76+
geo: Optional[UserPolicyCheckGeo] = None
8077

8178
iat: Optional[float] = None
8279

src/cloudflare/types/zero_trust/unnamed_schema_ref_bf9e2abcf1b78a6cab8e6e29e2228a11.py src/cloudflare/types/zero_trust/device_experience_monitor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from ..._models import BaseModel
44

5-
__all__ = ["UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11"]
5+
__all__ = ["DeviceExperienceMonitor"]
66

77

8-
class UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11(BaseModel):
8+
class DeviceExperienceMonitor(BaseModel):
99
id: str
1010

1111
default: bool

0 commit comments

Comments
 (0)