diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index e1069e549e..ac9ed6f9cb 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -38207,6 +38207,15 @@ paths: schema: format: int64 type: integer + - description: |- + Whether to return only deleted service level objective objects. + example: true + in: query + name: is_deleted + required: false + schema: + default: false + type: boolean responses: "200": content: diff --git a/src/datadog_api_client/v1/api/service_level_objectives_api.py b/src/datadog_api_client/v1/api/service_level_objectives_api.py index 6b2fb8f22d..f8641ce541 100644 --- a/src/datadog_api_client/v1/api/service_level_objectives_api.py +++ b/src/datadog_api_client/v1/api/service_level_objectives_api.py @@ -273,6 +273,11 @@ def __init__(self, api_client=None): "attribute": "offset", "location": "query", }, + "is_deleted": { + "openapi_types": (bool,), + "attribute": "is_deleted", + "location": "query", + }, }, headers_map={ "accept": ["application/json"], @@ -524,6 +529,7 @@ def list_slos( metrics_query: Union[str, UnsetType] = unset, limit: Union[int, UnsetType] = unset, offset: Union[int, UnsetType] = unset, + is_deleted: Union[bool, UnsetType] = unset, ) -> SLOListResponse: """Get all SLOs. @@ -541,6 +547,8 @@ def list_slos( :type limit: int, optional :param offset: The specific offset to use as the beginning of the returned response. :type offset: int, optional + :param is_deleted: Whether to return only deleted service level objective objects. + :type is_deleted: bool, optional :rtype: SLOListResponse """ kwargs: Dict[str, Any] = {} @@ -562,6 +570,9 @@ def list_slos( if offset is not unset: kwargs["offset"] = offset + if is_deleted is not unset: + kwargs["is_deleted"] = is_deleted + return self._list_slos_endpoint.call_with_http_info(**kwargs) def list_slos_with_pagination( @@ -573,6 +584,7 @@ def list_slos_with_pagination( metrics_query: Union[str, UnsetType] = unset, limit: Union[int, UnsetType] = unset, offset: Union[int, UnsetType] = unset, + is_deleted: Union[bool, UnsetType] = unset, ) -> collections.abc.Iterable[ServiceLevelObjective]: """Get all SLOs. @@ -590,6 +602,8 @@ def list_slos_with_pagination( :type limit: int, optional :param offset: The specific offset to use as the beginning of the returned response. :type offset: int, optional + :param is_deleted: Whether to return only deleted service level objective objects. + :type is_deleted: bool, optional :return: A generator of paginated results. :rtype: collections.abc.Iterable[ServiceLevelObjective] @@ -613,6 +627,9 @@ def list_slos_with_pagination( if offset is not unset: kwargs["offset"] = offset + if is_deleted is not unset: + kwargs["is_deleted"] = is_deleted + local_page_size = get_attribute_from_path(kwargs, "limit", 1000) endpoint = self._list_slos_endpoint set_attribute_from_path(kwargs, "limit", local_page_size, endpoint.params_map)