Skip to content

Commit 535bdb6

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

18 files changed

+191
-167
lines changed

api.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -5083,19 +5083,20 @@ Types:
50835083

50845084
```python
50855085
from cloudflare.types.zero_trust.access import (
5086-
AllowedHeadersh,
5087-
AllowedIdpsh,
5088-
AllowedMethodsh,
5089-
AllowedOriginsh,
5086+
AllowedHeaders,
5087+
AllowedHTTPMethods,
5088+
AllowedIdPs,
5089+
AllowedMethods,
5090+
AllowedOrigins,
50905091
AppID,
50915092
Application,
50925093
CORSHeaders,
5093-
CustomPagesh,
5094+
CustomPages,
50945095
SaaSAppNameFormat,
50955096
SaaSAppNameIDFormat,
50965097
SaaSAppSource,
50975098
SAMLSaaSApp,
5098-
SelfHostedDomainsh,
5099+
SelfHostedDomains,
50995100
ApplicationDeleteResponse,
51005101
ApplicationRevokeTokensResponse,
51015102
)

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

+71-71
Large diffs are not rendered by default.

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

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
from .application import Application as Application
99
from .certificate import Certificate as Certificate
1010
from .custom_page import CustomPage as CustomPage
11+
from .allowed_idps import AllowedIdPs as AllowedIdPs
1112
from .app_id_param import AppIDParam as AppIDParam
1213
from .cors_headers import CORSHeaders as CORSHeaders
13-
from .allowed_idpsh import AllowedIdpsh as AllowedIdpsh
14-
from .custom_pagesh import CustomPagesh as CustomPagesh
14+
from .custom_pages import CustomPages as CustomPages
1515
from .saml_saas_app import SAMLSaaSApp as SAMLSaaSApp
1616
from .service_token import ServiceToken as ServiceToken
17+
from .allowed_headers import AllowedHeaders as AllowedHeaders
18+
from .allowed_methods import AllowedMethods as AllowedMethods
19+
from .allowed_origins import AllowedOrigins as AllowedOrigins
1720
from .saas_app_source import SaaSAppSource as SaaSAppSource
18-
from .allowed_headersh import AllowedHeadersh as AllowedHeadersh
19-
from .allowed_methodsh import AllowedMethodsh as AllowedMethodsh
20-
from .allowed_originsh import AllowedOriginsh as AllowedOriginsh
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
@@ -29,10 +29,11 @@
2929
from .key_rotate_response import KeyRotateResponse as KeyRotateResponse
3030
from .key_update_response import KeyUpdateResponse as KeyUpdateResponse
3131
from .saml_saas_app_param import SAMLSaaSAppParam as SAMLSaaSAppParam
32+
from .self_hosted_domains import SelfHostedDomains as SelfHostedDomains
3233
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
34+
from .allowed_http_methods import AllowedHTTPMethods as AllowedHTTPMethods
3335
from .associated_hostnames import AssociatedHostnames as AssociatedHostnames
3436
from .saas_app_name_format import SaaSAppNameFormat as SaaSAppNameFormat
35-
from .self_hosted_domainsh import SelfHostedDomainsh as SelfHostedDomainsh
3637
from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse
3738
from .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam
3839
from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams
@@ -46,6 +47,7 @@
4647
from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams
4748
from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams
4849
from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams
50+
from .allowed_http_methods_param import AllowedHTTPMethodsParam as AllowedHTTPMethodsParam
4951
from .application_delete_response import ApplicationDeleteResponse as ApplicationDeleteResponse
5052
from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse
5153
from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
__all__ = ["AllowedHeadersh"]
4+
__all__ = ["AllowedHeaders"]
55

6-
AllowedHeadersh = str
6+
AllowedHeaders = str
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import List
4+
5+
from .allowed_methods import AllowedMethods
6+
7+
__all__ = ["AllowedHTTPMethods"]
8+
9+
AllowedHTTPMethods = List[AllowedMethods]
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__ = ["AllowedMethods"]
9+
10+
AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
11+
12+
AllowedHTTPMethodsParam = List[AllowedMethods]
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
__all__ = ["AllowedIdpsh"]
4+
__all__ = ["AllowedIdPs"]
55

6-
AllowedIdpsh = str
6+
AllowedIdPs = 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__ = ["AllowedMethods"]
6+
7+
AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]

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

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

33

4-
__all__ = ["AllowedOriginsh"]
4+
__all__ = ["AllowedOrigins"]
55

6-
AllowedOriginsh = str
6+
AllowedOrigins = str

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

+17-17
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
from typing_extensions import Literal
66

77
from ...._models import BaseModel
8+
from .allowed_idps import AllowedIdPs
89
from .cors_headers import CORSHeaders
9-
from .allowed_idpsh import AllowedIdpsh
10-
from .custom_pagesh import CustomPagesh
10+
from .custom_pages import CustomPages
1111
from .saml_saas_app import SAMLSaaSApp
12-
from .self_hosted_domainsh import SelfHostedDomainsh
12+
from .self_hosted_domains import SelfHostedDomains
1313

1414
__all__ = [
1515
"Application",
@@ -50,7 +50,7 @@ class SelfHostedApplication(BaseModel):
5050
authentication.
5151
"""
5252

53-
allowed_idps: Optional[List[AllowedIdpsh]] = None
53+
allowed_idps: Optional[List[AllowedIdPs]] = None
5454
"""The identity providers your users can select when connecting to this
5555
application.
5656
@@ -92,7 +92,7 @@ class SelfHostedApplication(BaseModel):
9292
application when failing non-identity rules.
9393
"""
9494

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

9898
enable_binding_cookie: Optional[bool] = None
@@ -131,7 +131,7 @@ class SelfHostedApplication(BaseModel):
131131
attacks.
132132
"""
133133

134-
self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
134+
self_hosted_domains: Optional[List[SelfHostedDomains]] = None
135135
"""List of domains that Access will secure."""
136136

137137
service_auth_401_redirect: Optional[bool] = None
@@ -225,7 +225,7 @@ class SaaSApplication(BaseModel):
225225
id: Optional[str] = None
226226
"""UUID"""
227227

228-
allowed_idps: Optional[List[AllowedIdpsh]] = None
228+
allowed_idps: Optional[List[AllowedIdPs]] = None
229229
"""The identity providers your users can select when connecting to this
230230
application.
231231
@@ -247,7 +247,7 @@ class SaaSApplication(BaseModel):
247247

248248
created_at: Optional[datetime] = None
249249

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

253253
logo_url: Optional[str] = None
@@ -292,7 +292,7 @@ class BrowserSSHApplication(BaseModel):
292292
authentication.
293293
"""
294294

295-
allowed_idps: Optional[List[AllowedIdpsh]] = None
295+
allowed_idps: Optional[List[AllowedIdPs]] = None
296296
"""The identity providers your users can select when connecting to this
297297
application.
298298
@@ -334,7 +334,7 @@ class BrowserSSHApplication(BaseModel):
334334
application when failing non-identity rules.
335335
"""
336336

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

340340
enable_binding_cookie: Optional[bool] = None
@@ -373,7 +373,7 @@ class BrowserSSHApplication(BaseModel):
373373
attacks.
374374
"""
375375

376-
self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
376+
self_hosted_domains: Optional[List[SelfHostedDomains]] = None
377377
"""List of domains that Access will secure."""
378378

379379
service_auth_401_redirect: Optional[bool] = None
@@ -420,7 +420,7 @@ class BrowserVncApplication(BaseModel):
420420
authentication.
421421
"""
422422

423-
allowed_idps: Optional[List[AllowedIdpsh]] = None
423+
allowed_idps: Optional[List[AllowedIdPs]] = None
424424
"""The identity providers your users can select when connecting to this
425425
application.
426426
@@ -462,7 +462,7 @@ class BrowserVncApplication(BaseModel):
462462
application when failing non-identity rules.
463463
"""
464464

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

468468
enable_binding_cookie: Optional[bool] = None
@@ -501,7 +501,7 @@ class BrowserVncApplication(BaseModel):
501501
attacks.
502502
"""
503503

504-
self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
504+
self_hosted_domains: Optional[List[SelfHostedDomains]] = None
505505
"""List of domains that Access will secure."""
506506

507507
service_auth_401_redirect: Optional[bool] = None
@@ -533,7 +533,7 @@ class AppLauncherApplication(BaseModel):
533533
id: Optional[str] = None
534534
"""UUID"""
535535

536-
allowed_idps: Optional[List[AllowedIdpsh]] = None
536+
allowed_idps: Optional[List[AllowedIdPs]] = None
537537
"""The identity providers your users can select when connecting to this
538538
application.
539539
@@ -579,7 +579,7 @@ class DeviceEnrollmentPermissionsApplication(BaseModel):
579579
id: Optional[str] = None
580580
"""UUID"""
581581

582-
allowed_idps: Optional[List[AllowedIdpsh]] = None
582+
allowed_idps: Optional[List[AllowedIdPs]] = None
583583
"""The identity providers your users can select when connecting to this
584584
application.
585585
@@ -625,7 +625,7 @@ class BrowserIsolationPermissionsApplication(BaseModel):
625625
id: Optional[str] = None
626626
"""UUID"""
627627

628-
allowed_idps: Optional[List[AllowedIdpsh]] = None
628+
allowed_idps: Optional[List[AllowedIdPs]] = None
629629
"""The identity providers your users can select when connecting to this
630630
application.
631631

0 commit comments

Comments
 (0)