Skip to content

Commit 7d8cf34

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a2914c2 of spec repo (#3651)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 9011e83 commit 7d8cf34

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ components:
161161
schema:
162162
example: "2020-11-24T18:46:21+00:00"
163163
type: string
164+
ApplicationKeyFilterOwnedByParameter:
165+
description: Filter application keys by owner ID.
166+
in: query
167+
name: filter[owned_by]
168+
required: false
169+
schema:
170+
type: string
164171
ApplicationKeyFilterParameter:
165172
description: Filter application keys by the specified string.
166173
in: query
@@ -107769,6 +107776,7 @@ paths:
107769107776
- $ref: "#/components/parameters/ApplicationKeyFilterParameter"
107770107777
- $ref: "#/components/parameters/ApplicationKeyFilterCreatedAtStartParameter"
107771107778
- $ref: "#/components/parameters/ApplicationKeyFilterCreatedAtEndParameter"
107779+
- $ref: "#/components/parameters/ApplicationKeyFilterOwnedByParameter"
107772107780
- $ref: "#/components/parameters/ApplicationKeyIncludeParameter"
107773107781
responses:
107774107782
"200":

src/datadog_api_client/v2/api/key_management_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ def __init__(self, api_client=None):
390390
"attribute": "filter[created_at][end]",
391391
"location": "query",
392392
},
393+
"filter_owned_by": {
394+
"openapi_types": (str,),
395+
"attribute": "filter[owned_by]",
396+
"location": "query",
397+
},
393398
"include": {
394399
"openapi_types": (str,),
395400
"attribute": "include",
@@ -928,6 +933,7 @@ def list_application_keys(
928933
filter: Union[str, UnsetType] = unset,
929934
filter_created_at_start: Union[str, UnsetType] = unset,
930935
filter_created_at_end: Union[str, UnsetType] = unset,
936+
filter_owned_by: Union[str, UnsetType] = unset,
931937
include: Union[str, UnsetType] = unset,
932938
) -> ListApplicationKeysResponse:
933939
"""Get all application keys.
@@ -948,6 +954,8 @@ def list_application_keys(
948954
:type filter_created_at_start: str, optional
949955
:param filter_created_at_end: Only include application keys created on or before the specified date.
950956
:type filter_created_at_end: str, optional
957+
:param filter_owned_by: Filter application keys by owner ID.
958+
:type filter_owned_by: str, optional
951959
:param include: Resource path for related resources to include in the response. Only ``owned_by`` is supported.
952960
:type include: str, optional
953961
:rtype: ListApplicationKeysResponse
@@ -971,6 +979,9 @@ def list_application_keys(
971979
if filter_created_at_end is not unset:
972980
kwargs["filter_created_at_end"] = filter_created_at_end
973981

982+
if filter_owned_by is not unset:
983+
kwargs["filter_owned_by"] = filter_owned_by
984+
974985
if include is not unset:
975986
kwargs["include"] = include
976987

0 commit comments

Comments
 (0)