Skip to content

Commit 97bfb4b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7a8f8e1 of spec repo
1 parent 0701861 commit 97bfb4b

4 files changed

Lines changed: 21 additions & 21 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133480,20 +133480,20 @@ paths:
133480133480
name: is_archived
133481133481
schema:
133482133482
type: boolean
133483-
- description: Maximum number of results to return.
133483+
- description: Maximum number of feature flags to return.
133484133484
example: 10
133485133485
in: query
133486-
name: limit
133486+
name: page[limit]
133487133487
schema:
133488-
default: 100
133488+
default: 25
133489133489
format: int64
133490133490
maximum: 1000
133491133491
minimum: 1
133492133492
type: integer
133493-
- description: Number of results to skip.
133493+
- description: Number of feature flags to skip for pagination.
133494133494
example: 0
133495133495
in: query
133496-
name: offset
133496+
name: page[offset]
133497133497
schema:
133498133498
default: 0
133499133499
format: int64

examples/v2/feature-flags/ListFeatureFlags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = FeatureFlagsApi(api_client)
1111
response = api_instance.list_feature_flags(
12-
limit=10,
12+
page_limit=10,
1313
)
1414

1515
print(response)

src/datadog_api_client/v2/api/feature_flags_api.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -337,21 +337,21 @@ def __init__(self, api_client=None):
337337
"attribute": "is_archived",
338338
"location": "query",
339339
},
340-
"limit": {
340+
"page_limit": {
341341
"validation": {
342342
"inclusive_maximum": 1000,
343343
"inclusive_minimum": 1,
344344
},
345345
"openapi_types": (int,),
346-
"attribute": "limit",
346+
"attribute": "page[limit]",
347347
"location": "query",
348348
},
349-
"offset": {
349+
"page_offset": {
350350
"validation": {
351351
"inclusive_minimum": 0,
352352
},
353353
"openapi_types": (int,),
354-
"attribute": "offset",
354+
"attribute": "page[offset]",
355355
"location": "query",
356356
},
357357
},
@@ -864,8 +864,8 @@ def list_feature_flags(
864864
*,
865865
key: Union[str, UnsetType] = unset,
866866
is_archived: Union[bool, UnsetType] = unset,
867-
limit: Union[int, UnsetType] = unset,
868-
offset: Union[int, UnsetType] = unset,
867+
page_limit: Union[int, UnsetType] = unset,
868+
page_offset: Union[int, UnsetType] = unset,
869869
) -> ListFeatureFlagsResponse:
870870
"""List feature flags.
871871
@@ -876,10 +876,10 @@ def list_feature_flags(
876876
:type key: str, optional
877877
:param is_archived: Filter by archived status.
878878
:type is_archived: bool, optional
879-
:param limit: Maximum number of results to return.
880-
:type limit: int, optional
881-
:param offset: Number of results to skip.
882-
:type offset: int, optional
879+
:param page_limit: Maximum number of feature flags to return.
880+
:type page_limit: int, optional
881+
:param page_offset: Number of feature flags to skip for pagination.
882+
:type page_offset: int, optional
883883
:rtype: ListFeatureFlagsResponse
884884
"""
885885
kwargs: Dict[str, Any] = {}
@@ -889,11 +889,11 @@ def list_feature_flags(
889889
if is_archived is not unset:
890890
kwargs["is_archived"] = is_archived
891891

892-
if limit is not unset:
893-
kwargs["limit"] = limit
892+
if page_limit is not unset:
893+
kwargs["page_limit"] = page_limit
894894

895-
if offset is not unset:
896-
kwargs["offset"] = offset
895+
if page_offset is not unset:
896+
kwargs["page_offset"] = page_offset
897897

898898
return self._list_feature_flags_endpoint.call_with_http_info(**kwargs)
899899

tests/v2/features/feature_flags.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Feature: Feature Flags
307307
@team:DataDog/feature-flags
308308
Scenario: List feature flags returns "OK" response
309309
Given new "ListFeatureFlags" request
310-
And request contains "limit" parameter with value 10
310+
And request contains "page[limit]" parameter with value 10
311311
When the request is sent
312312
Then the response status is 200 OK
313313

0 commit comments

Comments
 (0)