Skip to content

Commit 69dde94

Browse files
committed
chore(resource_sharing): update generated types and methods
1 parent d686142 commit 69dde94

17 files changed

Lines changed: 48 additions & 1 deletion

src/cloudflare/resources/resource_sharing/resource_sharing.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import httpx
99

10-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10+
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
1111
from ..._utils import path_template, maybe_transform, async_maybe_transform
1212
from ..._compat import cached_property
1313
from .resources import (
@@ -199,10 +199,12 @@ def list(
199199
"gateway-destination-ip",
200200
"gateway-block-page-settings",
201201
"gateway-extended-email-matching",
202+
"idp-federation-grant",
202203
]
203204
]
204205
| Omit = omit,
205206
status: Literal["active", "deleting", "deleted"] | Omit = omit,
207+
tag: SequenceNotStr[str] | Omit = omit,
206208
target_type: Literal["account", "organization"] | Omit = omit,
207209
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
208210
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -235,6 +237,11 @@ def list(
235237
236238
status: Filter shares by status.
237239
240+
tag: Filter shares by tag. Each value is either `key=value` (matches shares whose
241+
tags contain that key/value pair) or `key` alone (matches shares that have any
242+
value for that key). May be repeated; multiple `tag` parameters are ANDed
243+
together. Maximum 20 `tag` parameters per request.
244+
238245
target_type: Filter shares by target_type.
239246
240247
extra_headers: Send extra headers
@@ -266,6 +273,7 @@ def list(
266273
"per_page": per_page,
267274
"resource_types": resource_types,
268275
"status": status,
276+
"tag": tag,
269277
"target_type": target_type,
270278
},
271279
resource_sharing_list_params.ResourceSharingListParams,
@@ -527,10 +535,12 @@ def list(
527535
"gateway-destination-ip",
528536
"gateway-block-page-settings",
529537
"gateway-extended-email-matching",
538+
"idp-federation-grant",
530539
]
531540
]
532541
| Omit = omit,
533542
status: Literal["active", "deleting", "deleted"] | Omit = omit,
543+
tag: SequenceNotStr[str] | Omit = omit,
534544
target_type: Literal["account", "organization"] | Omit = omit,
535545
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
536546
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -563,6 +573,11 @@ def list(
563573
564574
status: Filter shares by status.
565575
576+
tag: Filter shares by tag. Each value is either `key=value` (matches shares whose
577+
tags contain that key/value pair) or `key` alone (matches shares that have any
578+
value for that key). May be repeated; multiple `tag` parameters are ANDed
579+
together. Maximum 20 `tag` parameters per request.
580+
566581
target_type: Filter shares by target_type.
567582
568583
extra_headers: Send extra headers
@@ -594,6 +609,7 @@ def list(
594609
"per_page": per_page,
595610
"resource_types": resource_types,
596611
"status": status,
612+
"tag": tag,
597613
"target_type": target_type,
598614
},
599615
resource_sharing_list_params.ResourceSharingListParams,

src/cloudflare/resources/resource_sharing/resources.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def create(
6464
"gateway-destination-ip",
6565
"gateway-block-page-settings",
6666
"gateway-extended-email-matching",
67+
"idp-federation-grant",
6768
],
6869
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6970
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -195,6 +196,7 @@ def list(
195196
"gateway-destination-ip",
196197
"gateway-block-page-settings",
197198
"gateway-extended-email-matching",
199+
"idp-federation-grant",
198200
]
199201
| Omit = omit,
200202
status: Literal["active", "deleting", "deleted"] | Omit = omit,
@@ -400,6 +402,7 @@ async def create(
400402
"gateway-destination-ip",
401403
"gateway-block-page-settings",
402404
"gateway-extended-email-matching",
405+
"idp-federation-grant",
403406
],
404407
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
405408
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -531,6 +534,7 @@ def list(
531534
"gateway-destination-ip",
532535
"gateway-block-page-settings",
533536
"gateway-extended-email-matching",
537+
"idp-federation-grant",
534538
]
535539
| Omit = omit,
536540
status: Literal["active", "deleting", "deleted"] | Omit = omit,

src/cloudflare/types/resource_sharing/resource_create_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ResourceCreateParams(TypedDict, total=False):
2727
"gateway-destination-ip",
2828
"gateway-block-page-settings",
2929
"gateway-extended-email-matching",
30+
"idp-federation-grant",
3031
]
3132
]
3233
"""Resource Type."""

src/cloudflare/types/resource_sharing/resource_create_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ResourceCreateResponse(BaseModel):
3333
"gateway-destination-ip",
3434
"gateway-block-page-settings",
3535
"gateway-extended-email-matching",
36+
"idp-federation-grant",
3637
]
3738
"""Resource Type."""
3839

src/cloudflare/types/resource_sharing/resource_delete_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ResourceDeleteResponse(BaseModel):
3333
"gateway-destination-ip",
3434
"gateway-block-page-settings",
3535
"gateway-extended-email-matching",
36+
"idp-federation-grant",
3637
]
3738
"""Resource Type."""
3839

src/cloudflare/types/resource_sharing/resource_get_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ResourceGetResponse(BaseModel):
3333
"gateway-destination-ip",
3434
"gateway-block-page-settings",
3535
"gateway-extended-email-matching",
36+
"idp-federation-grant",
3637
]
3738
"""Resource Type."""
3839

src/cloudflare/types/resource_sharing/resource_list_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ResourceListParams(TypedDict, total=False):
2323
"gateway-destination-ip",
2424
"gateway-block-page-settings",
2525
"gateway-extended-email-matching",
26+
"idp-federation-grant",
2627
]
2728
"""Filter share resources by resource_type."""
2829

src/cloudflare/types/resource_sharing/resource_list_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ResourceListResponse(BaseModel):
3333
"gateway-destination-ip",
3434
"gateway-block-page-settings",
3535
"gateway-extended-email-matching",
36+
"idp-federation-grant",
3637
]
3738
"""Resource Type."""
3839

src/cloudflare/types/resource_sharing/resource_sharing_create_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Resource(TypedDict, total=False):
4747
"gateway-destination-ip",
4848
"gateway-block-page-settings",
4949
"gateway-extended-email-matching",
50+
"idp-federation-grant",
5051
]
5152
]
5253
"""Resource Type."""

src/cloudflare/types/resource_sharing/resource_sharing_create_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class Resource(BaseModel):
3434
"gateway-destination-ip",
3535
"gateway-block-page-settings",
3636
"gateway-extended-email-matching",
37+
"idp-federation-grant",
3738
]
3839
"""Resource Type."""
3940

0 commit comments

Comments
 (0)