Skip to content

Commit b35c0e4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2d231c9 of spec repo
1 parent 9cfedcb commit b35c0e4

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138112,7 +138112,7 @@ paths:
138112138112
get:
138113138113
description: |-
138114138114
Returns a list of environments for the organization.
138115-
Supports filtering by name and key.
138115+
Supports filtering by name, key, and DD_ENV.
138116138116
operationId: ListFeatureFlagsEnvironments
138117138117
parameters:
138118138118
- description: Filter environments by name (partial matching).
@@ -138127,6 +138127,12 @@ paths:
138127138127
name: key
138128138128
schema:
138129138129
type: string
138130+
- description: Filter environments by queries that contain the provided DD_ENV value.
138131+
example: "staging"
138132+
in: query
138133+
name: dd_env
138134+
schema:
138135+
type: string
138130138136
- description: Maximum number of results to return.
138131138137
example: 10
138132138138
in: query

src/datadog_api_client/v2/api/feature_flags_api.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ def __init__(self, api_client=None):
381381
"attribute": "key",
382382
"location": "query",
383383
},
384+
"dd_env": {
385+
"openapi_types": (str,),
386+
"attribute": "dd_env",
387+
"location": "query",
388+
},
384389
"limit": {
385390
"validation": {
386391
"inclusive_maximum": 1000,
@@ -902,18 +907,21 @@ def list_feature_flags_environments(
902907
*,
903908
name: Union[str, UnsetType] = unset,
904909
key: Union[str, UnsetType] = unset,
910+
dd_env: Union[str, UnsetType] = unset,
905911
limit: Union[int, UnsetType] = unset,
906912
offset: Union[int, UnsetType] = unset,
907913
) -> ListEnvironmentsResponse:
908914
"""List environments.
909915
910916
Returns a list of environments for the organization.
911-
Supports filtering by name and key.
917+
Supports filtering by name, key, and DD_ENV.
912918
913919
:param name: Filter environments by name (partial matching).
914920
:type name: str, optional
915921
:param key: Filter environments by key (partial matching).
916922
:type key: str, optional
923+
:param dd_env: Filter environments by queries that contain the provided DD_ENV value.
924+
:type dd_env: str, optional
917925
:param limit: Maximum number of results to return.
918926
:type limit: int, optional
919927
:param offset: Number of results to skip.
@@ -927,6 +935,9 @@ def list_feature_flags_environments(
927935
if key is not unset:
928936
kwargs["key"] = key
929937

938+
if dd_env is not unset:
939+
kwargs["dd_env"] = dd_env
940+
930941
if limit is not unset:
931942
kwargs["limit"] = limit
932943

0 commit comments

Comments
 (0)