Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133480,20 +133480,20 @@ paths:
name: is_archived
schema:
type: boolean
- description: Maximum number of results to return.
- description: Maximum number of feature flags to return.
example: 10
in: query
name: limit
name: page[limit]
schema:
default: 100
default: 25
format: int64
maximum: 1000
minimum: 1
type: integer
- description: Number of results to skip.
- description: Number of feature flags to skip for pagination.
example: 0
in: query
name: offset
name: page[offset]
schema:
default: 0
format: int64
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/feature-flags/ListFeatureFlags.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
with ApiClient(configuration) as api_client:
api_instance = FeatureFlagsApi(api_client)
response = api_instance.list_feature_flags(
limit=10,
page_limit=10,
)

print(response)
28 changes: 14 additions & 14 deletions src/datadog_api_client/v2/api/feature_flags_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,21 +337,21 @@ def __init__(self, api_client=None):
"attribute": "is_archived",
"location": "query",
},
"limit": {
"page_limit": {
"validation": {
"inclusive_maximum": 1000,
"inclusive_minimum": 1,
},
"openapi_types": (int,),
"attribute": "limit",
"attribute": "page[limit]",
"location": "query",
},
"offset": {
"page_offset": {
"validation": {
"inclusive_minimum": 0,
},
"openapi_types": (int,),
"attribute": "offset",
"attribute": "page[offset]",
"location": "query",
},
},
Expand Down Expand Up @@ -864,8 +864,8 @@ def list_feature_flags(
*,
key: Union[str, UnsetType] = unset,
is_archived: Union[bool, UnsetType] = unset,
limit: Union[int, UnsetType] = unset,
offset: Union[int, UnsetType] = unset,
page_limit: Union[int, UnsetType] = unset,
page_offset: Union[int, UnsetType] = unset,
) -> ListFeatureFlagsResponse:
"""List feature flags.

Expand All @@ -876,10 +876,10 @@ def list_feature_flags(
:type key: str, optional
:param is_archived: Filter by archived status.
:type is_archived: bool, optional
:param limit: Maximum number of results to return.
:type limit: int, optional
:param offset: Number of results to skip.
:type offset: int, optional
:param page_limit: Maximum number of feature flags to return.
:type page_limit: int, optional
:param page_offset: Number of feature flags to skip for pagination.
:type page_offset: int, optional
:rtype: ListFeatureFlagsResponse
"""
kwargs: Dict[str, Any] = {}
Expand All @@ -889,11 +889,11 @@ def list_feature_flags(
if is_archived is not unset:
kwargs["is_archived"] = is_archived

if limit is not unset:
kwargs["limit"] = limit
if page_limit is not unset:
kwargs["page_limit"] = page_limit

if offset is not unset:
kwargs["offset"] = offset
if page_offset is not unset:
kwargs["page_offset"] = page_offset

return self._list_feature_flags_endpoint.call_with_http_info(**kwargs)

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-04-22T20:15:57.469Z
2026-06-30T20:11:24.948Z
Loading
Loading