Skip to content

Commit 3dbbe9c

Browse files
feat(api): api update
1 parent 62ff705 commit 3dbbe9c

6 files changed

Lines changed: 51 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1769
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9bc93f9df081f55843306433133d6add8d79667b7df6d4d2e9b62b0246566301.yml
3-
openapi_spec_hash: 6448ebcb6744955340de7ffb6c5839ed
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-89b2a01eec6a13b3b9080a223928986ca8413816539f6b527e240db5f8f4d8ef.yml
3+
openapi_spec_hash: 89ab55e868b69507d29d91bb6ed4b64a
44
config_hash: 18e6b76de8b719dd7c9c28614ac32643

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,7 @@ def list(
23992399
zone_id: str | NotGiven = NOT_GIVEN,
24002400
aud: str | NotGiven = NOT_GIVEN,
24012401
domain: str | NotGiven = NOT_GIVEN,
2402+
exact: bool | NotGiven = NOT_GIVEN,
24022403
name: str | NotGiven = NOT_GIVEN,
24032404
search: str | NotGiven = NOT_GIVEN,
24042405
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2420,6 +2421,8 @@ def list(
24202421
24212422
domain: The domain of the app.
24222423
2424+
exact: True for only exact string matches against passed name/domain query parameters.
2425+
24232426
name: The name of the app.
24242427
24252428
search: Search for apps by other listed query parameters.
@@ -2456,6 +2459,7 @@ def list(
24562459
{
24572460
"aud": aud,
24582461
"domain": domain,
2462+
"exact": exact,
24592463
"name": name,
24602464
"search": search,
24612465
},
@@ -4960,6 +4964,7 @@ def list(
49604964
zone_id: str | NotGiven = NOT_GIVEN,
49614965
aud: str | NotGiven = NOT_GIVEN,
49624966
domain: str | NotGiven = NOT_GIVEN,
4967+
exact: bool | NotGiven = NOT_GIVEN,
49634968
name: str | NotGiven = NOT_GIVEN,
49644969
search: str | NotGiven = NOT_GIVEN,
49654970
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -4981,6 +4986,8 @@ def list(
49814986
49824987
domain: The domain of the app.
49834988
4989+
exact: True for only exact string matches against passed name/domain query parameters.
4990+
49844991
name: The name of the app.
49854992
49864993
search: Search for apps by other listed query parameters.
@@ -5017,6 +5024,7 @@ def list(
50175024
{
50185025
"aud": aud,
50195026
"domain": domain,
5027+
"exact": exact,
50205028
"name": name,
50215029
"search": search,
50225030
},

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class ApplicationListParams(TypedDict, total=False):
2020
domain: str
2121
"""The domain of the app."""
2222

23+
exact: bool
24+
"""True for only exact string matches against passed name/domain query parameters."""
25+
2326
name: str
2427
"""The name of the app."""
2528

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"AccessCommonNameRuleCommonName",
3333
"AccessLoginMethodRule",
3434
"AccessLoginMethodRuleLoginMethod",
35+
"AccessOIDCClaimRule",
36+
"AccessOIDCClaimRuleOIDC",
3537
]
3638

3739

@@ -68,6 +70,21 @@ class AccessLoginMethodRule(BaseModel):
6870
login_method: AccessLoginMethodRuleLoginMethod
6971

7072

73+
class AccessOIDCClaimRuleOIDC(BaseModel):
74+
claim_name: str
75+
"""The name of the OIDC claim."""
76+
77+
claim_value: str
78+
"""The OIDC claim value to look for."""
79+
80+
identity_provider_id: str
81+
"""The ID of your OIDC identity provider."""
82+
83+
84+
class AccessOIDCClaimRule(BaseModel):
85+
oidc: AccessOIDCClaimRuleOIDC
86+
87+
7188
AccessRule: TypeAlias = Union[
7289
GroupRule,
7390
AnyValidServiceTokenRule,
@@ -90,5 +107,6 @@ class AccessLoginMethodRule(BaseModel):
90107
IPRule,
91108
OktaGroupRule,
92109
SAMLGroupRule,
110+
AccessOIDCClaimRule,
93111
ServiceTokenRule,
94112
]

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"AccessCommonNameRuleCommonName",
3434
"AccessLoginMethodRule",
3535
"AccessLoginMethodRuleLoginMethod",
36+
"AccessOIDCClaimRule",
37+
"AccessOIDCClaimRuleOIDC",
3638
]
3739

3840

@@ -69,6 +71,21 @@ class AccessLoginMethodRule(TypedDict, total=False):
6971
login_method: Required[AccessLoginMethodRuleLoginMethod]
7072

7173

74+
class AccessOIDCClaimRuleOIDC(TypedDict, total=False):
75+
claim_name: Required[str]
76+
"""The name of the OIDC claim."""
77+
78+
claim_value: Required[str]
79+
"""The OIDC claim value to look for."""
80+
81+
identity_provider_id: Required[str]
82+
"""The ID of your OIDC identity provider."""
83+
84+
85+
class AccessOIDCClaimRule(TypedDict, total=False):
86+
oidc: Required[AccessOIDCClaimRuleOIDC]
87+
88+
7289
AccessRuleParam: TypeAlias = Union[
7390
GroupRuleParam,
7491
AnyValidServiceTokenRuleParam,
@@ -91,5 +108,6 @@ class AccessLoginMethodRule(TypedDict, total=False):
91108
IPRuleParam,
92109
OktaGroupRuleParam,
93110
SAMLGroupRuleParam,
111+
AccessOIDCClaimRule,
94112
ServiceTokenRuleParam,
95113
]

tests/api_resources/zero_trust/access/test_applications.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
29092909
account_id="account_id",
29102910
aud="aud",
29112911
domain="domain",
2912+
exact=True,
29122913
name="name",
29132914
search="search",
29142915
)
@@ -6045,6 +6046,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
60456046
account_id="account_id",
60466047
aud="aud",
60476048
domain="domain",
6049+
exact=True,
60486050
name="name",
60496051
search="search",
60506052
)

0 commit comments

Comments
 (0)