Skip to content

Commit dbf1fc7

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#474)
1 parent 535bdb6 commit dbf1fc7

14 files changed

+94
-108
lines changed

api.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -5084,14 +5084,13 @@ Types:
50845084
```python
50855085
from cloudflare.types.zero_trust.access import (
50865086
AllowedHeaders,
5087-
AllowedHTTPMethods,
50885087
AllowedIdPs,
50895088
AllowedMethods,
50905089
AllowedOrigins,
50915090
AppID,
50925091
Application,
5092+
ApplicationType,
50935093
CORSHeaders,
5094-
CustomPages,
50955094
SaaSAppNameFormat,
50965095
SaaSAppNameIDFormat,
50975096
SaaSAppSource,

src/cloudflare/resources/zero_trust/access/applications/applications.py

+42-47
Large diffs are not rendered by default.

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
from .allowed_idps import AllowedIdPs as AllowedIdPs
1212
from .app_id_param import AppIDParam as AppIDParam
1313
from .cors_headers import CORSHeaders as CORSHeaders
14-
from .custom_pages import CustomPages as CustomPages
1514
from .saml_saas_app import SAMLSaaSApp as SAMLSaaSApp
1615
from .service_token import ServiceToken as ServiceToken
1716
from .allowed_headers import AllowedHeaders as AllowedHeaders
1817
from .allowed_methods import AllowedMethods as AllowedMethods
1918
from .allowed_origins import AllowedOrigins as AllowedOrigins
2019
from .saas_app_source import SaaSAppSource as SaaSAppSource
20+
from .application_type import ApplicationType as ApplicationType
2121
from .key_get_response import KeyGetResponse as KeyGetResponse
2222
from .zero_trust_group import ZeroTrustGroup as ZeroTrustGroup
2323
from .key_update_params import KeyUpdateParams as KeyUpdateParams
@@ -31,9 +31,9 @@
3131
from .saml_saas_app_param import SAMLSaaSAppParam as SAMLSaaSAppParam
3232
from .self_hosted_domains import SelfHostedDomains as SelfHostedDomains
3333
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
34-
from .allowed_http_methods import AllowedHTTPMethods as AllowedHTTPMethods
3534
from .associated_hostnames import AssociatedHostnames as AssociatedHostnames
3635
from .saas_app_name_format import SaaSAppNameFormat as SaaSAppNameFormat
36+
from .allowed_methods_param import AllowedMethodsParam as AllowedMethodsParam
3737
from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse
3838
from .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam
3939
from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams
@@ -47,7 +47,6 @@
4747
from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams
4848
from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams
4949
from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams
50-
from .allowed_http_methods_param import AllowedHTTPMethodsParam as AllowedHTTPMethodsParam
5150
from .application_delete_response import ApplicationDeleteResponse as ApplicationDeleteResponse
5251
from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse
5352
from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse

src/cloudflare/types/zero_trust/access/allowed_http_methods.py

-9
This file was deleted.

src/cloudflare/types/zero_trust/access/allowed_http_methods_param.py

-12
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import List
34
from typing_extensions import Literal
45

56
__all__ = ["AllowedMethods"]
67

7-
AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
8+
AllowedMethods = List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing import List
6+
from typing_extensions import Literal
7+
8+
__all__ = ["AllowedMethodsParamItem"]
9+
10+
AllowedMethodsParamItem = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
11+
12+
AllowedMethodsParam = List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]

src/cloudflare/types/zero_trust/access/application.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from ...._models import BaseModel
88
from .allowed_idps import AllowedIdPs
99
from .cors_headers import CORSHeaders
10-
from .custom_pages import CustomPages
1110
from .saml_saas_app import SAMLSaaSApp
11+
from .application_type import ApplicationType
1212
from .self_hosted_domains import SelfHostedDomains
1313

1414
__all__ = [
@@ -92,7 +92,7 @@ class SelfHostedApplication(BaseModel):
9292
application when failing non-identity rules.
9393
"""
9494

95-
custom_pages: Optional[List[CustomPages]] = None
95+
custom_pages: Optional[List[str]] = None
9696
"""The custom pages that will be displayed when applicable for this application"""
9797

9898
enable_binding_cookie: Optional[bool] = None
@@ -247,7 +247,7 @@ class SaaSApplication(BaseModel):
247247

248248
created_at: Optional[datetime] = None
249249

250-
custom_pages: Optional[List[CustomPages]] = None
250+
custom_pages: Optional[List[str]] = None
251251
"""The custom pages that will be displayed when applicable for this application"""
252252

253253
logo_url: Optional[str] = None
@@ -334,7 +334,7 @@ class BrowserSSHApplication(BaseModel):
334334
application when failing non-identity rules.
335335
"""
336336

337-
custom_pages: Optional[List[CustomPages]] = None
337+
custom_pages: Optional[List[str]] = None
338338
"""The custom pages that will be displayed when applicable for this application"""
339339

340340
enable_binding_cookie: Optional[bool] = None
@@ -462,7 +462,7 @@ class BrowserVncApplication(BaseModel):
462462
application when failing non-identity rules.
463463
"""
464464

465-
custom_pages: Optional[List[CustomPages]] = None
465+
custom_pages: Optional[List[str]] = None
466466
"""The custom pages that will be displayed when applicable for this application"""
467467

468468
enable_binding_cookie: Optional[bool] = None
@@ -527,7 +527,7 @@ class BrowserVncApplication(BaseModel):
527527

528528

529529
class AppLauncherApplication(BaseModel):
530-
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
530+
type: ApplicationType
531531
"""The application type."""
532532

533533
id: Optional[str] = None
@@ -573,7 +573,7 @@ class AppLauncherApplication(BaseModel):
573573

574574

575575
class DeviceEnrollmentPermissionsApplication(BaseModel):
576-
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
576+
type: ApplicationType
577577
"""The application type."""
578578

579579
id: Optional[str] = None
@@ -619,7 +619,7 @@ class DeviceEnrollmentPermissionsApplication(BaseModel):
619619

620620

621621
class BrowserIsolationPermissionsApplication(BaseModel):
622-
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
622+
type: ApplicationType
623623
"""The application type."""
624624

625625
id: Optional[str] = None

src/cloudflare/types/zero_trust/access/application_create_params.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing_extensions import Literal, Required, TypedDict
77

88
from .allowed_idps import AllowedIdPs
9-
from .custom_pages import CustomPages
9+
from .application_type import ApplicationType
1010
from .cors_headers_param import CORSHeadersParam
1111
from .saml_saas_app_param import SAMLSaaSAppParam
1212
from .self_hosted_domains import SelfHostedDomains
@@ -90,7 +90,7 @@ class SelfHostedApplication(TypedDict, total=False):
9090
application when failing non-identity rules.
9191
"""
9292

93-
custom_pages: List[CustomPages]
93+
custom_pages: List[str]
9494
"""The custom pages that will be displayed when applicable for this application"""
9595

9696
enable_binding_cookie: bool
@@ -176,7 +176,7 @@ class SaaSApplication(TypedDict, total=False):
176176
You must specify only one identity provider in allowed_idps.
177177
"""
178178

179-
custom_pages: List[CustomPages]
179+
custom_pages: List[str]
180180
"""The custom pages that will be displayed when applicable for this application"""
181181

182182
logo_url: str
@@ -320,7 +320,7 @@ class BrowserSSHApplication(TypedDict, total=False):
320320
application when failing non-identity rules.
321321
"""
322322

323-
custom_pages: List[CustomPages]
323+
custom_pages: List[str]
324324
"""The custom pages that will be displayed when applicable for this application"""
325325

326326
enable_binding_cookie: bool
@@ -444,7 +444,7 @@ class BrowserVncApplication(TypedDict, total=False):
444444
application when failing non-identity rules.
445445
"""
446446

447-
custom_pages: List[CustomPages]
447+
custom_pages: List[str]
448448
"""The custom pages that will be displayed when applicable for this application"""
449449

450450
enable_binding_cookie: bool
@@ -507,7 +507,7 @@ class BrowserVncApplication(TypedDict, total=False):
507507

508508

509509
class AppLauncherApplication(TypedDict, total=False):
510-
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
510+
type: Required[ApplicationType]
511511
"""The application type."""
512512

513513
account_id: str
@@ -539,7 +539,7 @@ class AppLauncherApplication(TypedDict, total=False):
539539

540540

541541
class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
542-
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
542+
type: Required[ApplicationType]
543543
"""The application type."""
544544

545545
account_id: str
@@ -571,7 +571,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
571571

572572

573573
class BrowserIsolationPermissionsApplication(TypedDict, total=False):
574-
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
574+
type: Required[ApplicationType]
575575
"""The application type."""
576576

577577
account_id: 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__ = ["ApplicationType"]
6+
7+
ApplicationType = Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]

src/cloudflare/types/zero_trust/access/application_update_params.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing_extensions import Literal, Required, TypedDict
77

88
from .allowed_idps import AllowedIdPs
9-
from .custom_pages import CustomPages
9+
from .application_type import ApplicationType
1010
from .cors_headers_param import CORSHeadersParam
1111
from .saml_saas_app_param import SAMLSaaSAppParam
1212
from .self_hosted_domains import SelfHostedDomains
@@ -90,7 +90,7 @@ class SelfHostedApplication(TypedDict, total=False):
9090
application when failing non-identity rules.
9191
"""
9292

93-
custom_pages: List[CustomPages]
93+
custom_pages: List[str]
9494
"""The custom pages that will be displayed when applicable for this application"""
9595

9696
enable_binding_cookie: bool
@@ -176,7 +176,7 @@ class SaaSApplication(TypedDict, total=False):
176176
You must specify only one identity provider in allowed_idps.
177177
"""
178178

179-
custom_pages: List[CustomPages]
179+
custom_pages: List[str]
180180
"""The custom pages that will be displayed when applicable for this application"""
181181

182182
logo_url: str
@@ -320,7 +320,7 @@ class BrowserSSHApplication(TypedDict, total=False):
320320
application when failing non-identity rules.
321321
"""
322322

323-
custom_pages: List[CustomPages]
323+
custom_pages: List[str]
324324
"""The custom pages that will be displayed when applicable for this application"""
325325

326326
enable_binding_cookie: bool
@@ -444,7 +444,7 @@ class BrowserVncApplication(TypedDict, total=False):
444444
application when failing non-identity rules.
445445
"""
446446

447-
custom_pages: List[CustomPages]
447+
custom_pages: List[str]
448448
"""The custom pages that will be displayed when applicable for this application"""
449449

450450
enable_binding_cookie: bool
@@ -507,7 +507,7 @@ class BrowserVncApplication(TypedDict, total=False):
507507

508508

509509
class AppLauncherApplication(TypedDict, total=False):
510-
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
510+
type: Required[ApplicationType]
511511
"""The application type."""
512512

513513
account_id: str
@@ -539,7 +539,7 @@ class AppLauncherApplication(TypedDict, total=False):
539539

540540

541541
class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
542-
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
542+
type: Required[ApplicationType]
543543
"""The application type."""
544544

545545
account_id: str
@@ -571,7 +571,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
571571

572572

573573
class BrowserIsolationPermissionsApplication(TypedDict, total=False):
574-
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
574+
type: Required[ApplicationType]
575575
"""The application type."""
576576

577577
account_id: str

src/cloudflare/types/zero_trust/access/cors_headers.py

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

55
from ...._models import BaseModel
66
from .allowed_headers import AllowedHeaders
7+
from .allowed_methods import AllowedMethods
78
from .allowed_origins import AllowedOrigins
8-
from .allowed_http_methods import AllowedHTTPMethods
99

1010
__all__ = ["CORSHeaders"]
1111

@@ -29,7 +29,7 @@ class CORSHeaders(BaseModel):
2929
allowed_headers: Optional[List[AllowedHeaders]] = None
3030
"""Allowed HTTP request headers."""
3131

32-
allowed_methods: Optional[AllowedHTTPMethods] = None
32+
allowed_methods: Optional[AllowedMethods] = None
3333
"""Allowed HTTP request methods."""
3434

3535
allowed_origins: Optional[List[AllowedOrigins]] = None

src/cloudflare/types/zero_trust/access/cors_headers_param.py

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

88
from .allowed_headers import AllowedHeaders
99
from .allowed_origins import AllowedOrigins
10-
from .allowed_http_methods_param import AllowedHTTPMethodsParam
10+
from .allowed_methods_param import AllowedMethodsParam
1111

1212
__all__ = ["CORSHeadersParam"]
1313

@@ -31,7 +31,7 @@ class CORSHeadersParam(TypedDict, total=False):
3131
allowed_headers: List[AllowedHeaders]
3232
"""Allowed HTTP request headers."""
3333

34-
allowed_methods: AllowedHTTPMethodsParam
34+
allowed_methods: AllowedMethodsParam
3535
"""Allowed HTTP request methods."""
3636

3737
allowed_origins: List[AllowedOrigins]

src/cloudflare/types/zero_trust/access/custom_pages.py

-6
This file was deleted.

0 commit comments

Comments
 (0)