Skip to content

Commit 8c2819a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a9eed47 of spec repo
1 parent 587de71 commit 8c2819a

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎.generator/schemas/v1/openapi.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38007,6 +38007,15 @@ paths:
3800738007
schema:
3800838008
format: int64
3800938009
type: integer
38010+
- description: |-
38011+
Whether to return only deleted service level objective objects.
38012+
example: true
38013+
in: query
38014+
name: is_deleted
38015+
required: false
38016+
schema:
38017+
default: false
38018+
type: boolean
3801038019
responses:
3801138020
"200":
3801238021
content:

‎src/datadog_api_client/v1/api/service_level_objectives_api.py‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ def __init__(self, api_client=None):
273273
"attribute": "offset",
274274
"location": "query",
275275
},
276+
"is_deleted": {
277+
"openapi_types": (bool,),
278+
"attribute": "is_deleted",
279+
"location": "query",
280+
},
276281
},
277282
headers_map={
278283
"accept": ["application/json"],
@@ -524,6 +529,7 @@ def list_slos(
524529
metrics_query: Union[str, UnsetType] = unset,
525530
limit: Union[int, UnsetType] = unset,
526531
offset: Union[int, UnsetType] = unset,
532+
is_deleted: Union[bool, UnsetType] = unset,
527533
) -> SLOListResponse:
528534
"""Get all SLOs.
529535
@@ -541,6 +547,8 @@ def list_slos(
541547
:type limit: int, optional
542548
:param offset: The specific offset to use as the beginning of the returned response.
543549
:type offset: int, optional
550+
:param is_deleted: Whether to return only deleted service level objective objects.
551+
:type is_deleted: bool, optional
544552
:rtype: SLOListResponse
545553
"""
546554
kwargs: Dict[str, Any] = {}
@@ -562,6 +570,9 @@ def list_slos(
562570
if offset is not unset:
563571
kwargs["offset"] = offset
564572

573+
if is_deleted is not unset:
574+
kwargs["is_deleted"] = is_deleted
575+
565576
return self._list_slos_endpoint.call_with_http_info(**kwargs)
566577

567578
def list_slos_with_pagination(
@@ -573,6 +584,7 @@ def list_slos_with_pagination(
573584
metrics_query: Union[str, UnsetType] = unset,
574585
limit: Union[int, UnsetType] = unset,
575586
offset: Union[int, UnsetType] = unset,
587+
is_deleted: Union[bool, UnsetType] = unset,
576588
) -> collections.abc.Iterable[ServiceLevelObjective]:
577589
"""Get all SLOs.
578590
@@ -590,6 +602,8 @@ def list_slos_with_pagination(
590602
:type limit: int, optional
591603
:param offset: The specific offset to use as the beginning of the returned response.
592604
:type offset: int, optional
605+
:param is_deleted: Whether to return only deleted service level objective objects.
606+
:type is_deleted: bool, optional
593607
594608
:return: A generator of paginated results.
595609
:rtype: collections.abc.Iterable[ServiceLevelObjective]
@@ -613,6 +627,9 @@ def list_slos_with_pagination(
613627
if offset is not unset:
614628
kwargs["offset"] = offset
615629

630+
if is_deleted is not unset:
631+
kwargs["is_deleted"] = is_deleted
632+
616633
local_page_size = get_attribute_from_path(kwargs, "limit", 1000)
617634
endpoint = self._list_slos_endpoint
618635
set_attribute_from_path(kwargs, "limit", local_page_size, endpoint.params_map)

0 commit comments

Comments
 (0)