From 03399227d32af0ff98ea5f9cd72f6a778dc75bb5 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 10 Jun 2026 07:37:11 +0000 Subject: [PATCH] Regenerate client from commit eeabc00 of spec repo --- .generator/schemas/v2/openapi.yaml | 71 +++++++++++++++++-- docs/datadog_api_client.v2.model.rst | 7 ++ .../v2/api/security_monitoring_api.py | 13 ++-- .../v2/model/assignment_result.py | 6 ++ .../model/notification_rules_list_response.py | 42 +++++++++++ src/datadog_api_client/v2/models/__init__.py | 2 + 6 files changed, 128 insertions(+), 13 deletions(-) create mode 100644 src/datadog_api_client/v2/model/notification_rules_list_response.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0031eb15e8..134a7ef0ee 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1985,12 +1985,7 @@ components: content: "application/json": schema: - properties: - data: - items: - $ref: "#/components/schemas/NotificationRule" - type: array - type: object + $ref: "#/components/schemas/NotificationRulesListResponse" description: The list of notification rules. PreconditionFailedResponse: content: @@ -10296,6 +10291,7 @@ components: description: HTTP-like status code describing the outcome for this finding. example: 500 format: int32 + maximum: 599 type: integer title: description: Short label describing the outcome for this finding. @@ -18064,7 +18060,8 @@ components: description: "The value of the set action" oneOf: - type: string - - type: integer + - format: int64 + type: integer - type: boolean CloudWorkloadSecurityAgentRuleActions: description: "The array of actions the rule can perform if triggered" @@ -40478,6 +40475,7 @@ components: - 4 - 5 example: 4 + format: int64 type: integer x-enum-varnames: - UNSPECIFIED @@ -58871,6 +58869,14 @@ components: data: $ref: "#/components/schemas/NotificationRule" type: object + NotificationRulesListResponse: + description: The list of notification rules. + properties: + data: + items: + $ref: "#/components/schemas/NotificationRule" + type: array + type: object NotificationRulesType: description: The rule type associated to notification rules. enum: @@ -70245,6 +70251,7 @@ components: description: Notification destinations (1=email, 2=slack, 3=in-app). items: description: Notification channel identifier (1=email, 2=slack, 3=in-app). + format: int64 type: integer type: array enabled: @@ -87522,6 +87529,7 @@ components: - 50 - 30 items: + format: int64 type: integer type: array names: @@ -110173,6 +110181,7 @@ paths: name: limit required: false schema: + format: int64 type: integer responses: "200": @@ -113317,6 +113326,7 @@ paths: required: false schema: default: 100 + format: int64 type: integer - description: Zero-based page number for pagination. in: query @@ -113324,6 +113334,7 @@ paths: required: false schema: default: 0 + format: int64 type: integer - description: "If `true`, returns timeline cells in chronological order (oldest first). Defaults to `false` (newest first)." in: query @@ -116539,6 +116550,7 @@ paths: required: false schema: example: 200 + format: int64 type: integer - description: Pagination offset. Defaults to `0`. in: query @@ -116546,6 +116558,7 @@ paths: required: false schema: example: 0 + format: int64 type: integer - description: Optional repeated cloud or SaaS provider filters, such as `aws`, `gcp`, `azure`, `Oracle`, `datadog`, `OpenAI`, or `Anthropic`. explode: true @@ -124868,6 +124881,7 @@ paths: name: limit schema: default: 100 + format: int64 maximum: 1000 minimum: 1 type: integer @@ -124877,6 +124891,7 @@ paths: name: offset schema: default: 0 + format: int64 minimum: 0 type: integer responses: @@ -125020,6 +125035,7 @@ paths: name: limit schema: default: 100 + format: int64 maximum: 1000 minimum: 1 type: integer @@ -125029,6 +125045,7 @@ paths: name: offset schema: default: 0 + format: int64 minimum: 0 type: integer responses: @@ -141878,11 +141895,13 @@ paths: in: query name: page[limit] schema: + format: int64 type: integer - description: Page offset from the start of the list (default 0). in: query name: page[offset] schema: + format: int64 type: integer - description: Substring filter on rule name. in: query @@ -143516,6 +143535,7 @@ paths: required: false schema: default: 25 + format: int64 maximum: 100 type: integer - description: Page number (1-indexed). @@ -143524,6 +143544,7 @@ paths: required: false schema: default: 1 + format: int64 type: integer responses: "200": @@ -143839,6 +143860,7 @@ paths: required: false schema: default: 25 + format: int64 maximum: 100 type: integer - description: Page number (1-indexed). @@ -143847,6 +143869,7 @@ paths: required: false schema: default: 1 + format: int64 type: integer responses: "200": @@ -154105,6 +154128,7 @@ paths: name: page[limit] schema: example: 10 + format: int64 type: integer - description: Filter by application ID. in: query @@ -156881,12 +156905,14 @@ paths: name: page[number] schema: example: 0 + format: int64 type: integer - description: Number of items per page. in: query name: page[size] schema: example: 25 + format: int64 type: integer responses: "200": @@ -156967,6 +156993,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer responses: "204": @@ -156990,6 +157017,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer responses: "200": @@ -157025,6 +157053,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer requestBody: content: @@ -157078,6 +157107,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer requestBody: content: @@ -157113,18 +157143,21 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer - description: Page number for pagination (0-indexed). in: query name: page[number] schema: example: 0 + format: int64 type: integer - description: Number of items per page. in: query name: page[size] schema: example: 25 + format: int64 type: integer responses: "200": @@ -157161,6 +157194,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer - description: Unique identifier of the session. in: path @@ -157205,6 +157239,7 @@ paths: required: true schema: example: 1234567 + format: int64 type: integer - description: Unique identifier of the session. in: path @@ -157288,6 +157323,7 @@ paths: name: max_list_size schema: example: 1048576 + format: int64 type: integer - description: Paging token for pagination. in: query @@ -157317,12 +157353,14 @@ paths: name: page[size] schema: example: 25 + format: int64 type: integer - description: Page number for pagination (0-indexed). in: query name: page[number] schema: example: 0 + format: int64 type: integer - description: Unique identifier of the session. in: path @@ -157450,6 +157488,7 @@ paths: name: page[number] schema: example: 0 + format: int64 type: integer - description: Filter by user UUID. Defaults to current user if not specified. in: query @@ -157475,6 +157514,7 @@ paths: name: page[size] schema: example: 25 + format: int64 type: integer - description: Filter by application ID. in: query @@ -158802,6 +158842,7 @@ paths: required: false schema: default: 0 + format: int64 type: integer - description: Number of scores to return. Max is 1000. in: query @@ -158809,6 +158850,7 @@ paths: required: false schema: default: 100 + format: int64 type: integer responses: "200": @@ -158916,6 +158958,7 @@ paths: name: page[limit] required: false schema: + format: int64 type: integer - description: Cursor for pagination. in: query @@ -159043,6 +159086,7 @@ paths: schema: default: 10 example: 10 + format: int64 type: integer - description: Page number to return (1-indexed). in: query @@ -159051,6 +159095,7 @@ paths: schema: default: 1 example: 1 + format: int64 type: integer - description: Query ID for pagination consistency. in: query @@ -169306,6 +169351,7 @@ paths: schema: default: 20 example: 20 + format: int64 type: integer - description: The page number to retrieve, starting from 1. in: query @@ -169313,6 +169359,7 @@ paths: schema: default: 1 example: 1 + format: int64 type: integer - description: |- Filter by service names (multiple values allowed). Required for @@ -171889,6 +171936,7 @@ paths: required: false schema: default: 0 + format: int64 type: integer - description: Pagination limit in: query @@ -171896,6 +171944,7 @@ paths: required: false schema: default: 10 + format: int64 type: integer responses: "200": @@ -172591,12 +172640,14 @@ paths: name: page[offset] schema: default: 0 + format: int64 type: integer - description: The number of status pages to return per page. in: query name: page[limit] schema: default: 50 + format: int64 type: integer - description: Filter status pages by exact domain prefix match. Returns at most one result. in: query @@ -172737,12 +172788,14 @@ paths: name: page[offset] schema: default: 0 + format: int64 type: integer - description: The number of degradations to return per page. in: query name: page[limit] schema: default: 50 + format: int64 type: integer - description: "Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user, status_page." in: query @@ -172808,12 +172861,14 @@ paths: name: page[offset] schema: default: 0 + format: int64 type: integer - description: The number of maintenances to return per page. in: query name: page[limit] schema: default: 50 + format: int64 type: integer - description: "Comma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user, status_page." in: query @@ -181000,6 +181055,7 @@ paths: name: page[number] schema: default: 0 + format: int64 minimum: 0 type: integer - description: Number of widgets per page. @@ -181007,6 +181063,7 @@ paths: name: page[size] schema: default: 50 + format: int64 maximum: 100 type: integer responses: diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 00b29897a4..26520fda06 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -24770,6 +24770,13 @@ datadog\_api\_client.v2.model.notification\_rule\_response module :members: :show-inheritance: +datadog\_api\_client.v2.model.notification\_rules\_list\_response module +------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.notification_rules_list_response + :members: + :show-inheritance: + datadog\_api\_client.v2.model.notification\_rules\_type module -------------------------------------------------------------- diff --git a/src/datadog_api_client/v2/api/security_monitoring_api.py b/src/datadog_api_client/v2/api/security_monitoring_api.py index ff04f6317b..a37b6f997c 100644 --- a/src/datadog_api_client/v2/api/security_monitoring_api.py +++ b/src/datadog_api_client/v2/api/security_monitoring_api.py @@ -64,6 +64,7 @@ from datadog_api_client.v2.model.cloud_asset_type import CloudAssetType from datadog_api_client.v2.model.io_c_explorer_list_response import IoCExplorerListResponse from datadog_api_client.v2.model.get_io_c_indicator_response import GetIoCIndicatorResponse +from datadog_api_client.v2.model.notification_rules_list_response import NotificationRulesListResponse from datadog_api_client.v2.model.notification_rule_response import NotificationRuleResponse from datadog_api_client.v2.model.create_notification_rule_parameters import CreateNotificationRuleParameters from datadog_api_client.v2.model.patch_notification_rule_parameters import PatchNotificationRuleParameters @@ -2086,7 +2087,7 @@ def __init__(self, api_client=None): self._get_signal_notification_rules_endpoint = _Endpoint( settings={ - "response_type": (dict,), + "response_type": (NotificationRulesListResponse,), "auth": ["apiKeyAuth", "appKeyAuth"], "endpoint_path": "/api/v2/security/signals/notification_rules", "operation_id": "get_signal_notification_rules", @@ -2326,7 +2327,7 @@ def __init__(self, api_client=None): self._get_vulnerability_notification_rules_endpoint = _Endpoint( settings={ - "response_type": (dict,), + "response_type": (NotificationRulesListResponse,), "auth": ["apiKeyAuth", "appKeyAuth"], "endpoint_path": "/api/v2/security/vulnerabilities/notification_rules", "operation_id": "get_vulnerability_notification_rules", @@ -5456,12 +5457,12 @@ def get_signal_notification_rule( def get_signal_notification_rules( self, - ) -> dict: + ) -> NotificationRulesListResponse: """Get the list of signal-based notification rules. Returns the list of notification rules for security signals. - :rtype: dict + :rtype: NotificationRulesListResponse """ kwargs: Dict[str, Any] = {} return self._get_signal_notification_rules_endpoint.call_with_http_info(**kwargs) @@ -5651,12 +5652,12 @@ def get_vulnerability_notification_rule( def get_vulnerability_notification_rules( self, - ) -> dict: + ) -> NotificationRulesListResponse: """Get the list of vulnerability notification rules. Returns the list of notification rules for security vulnerabilities. - :rtype: dict + :rtype: NotificationRulesListResponse """ kwargs: Dict[str, Any] = {} return self._get_vulnerability_notification_rules_endpoint.call_with_http_info(**kwargs) diff --git a/src/datadog_api_client/v2/model/assignment_result.py b/src/datadog_api_client/v2/model/assignment_result.py index 0d6cf76548..0606c549f1 100644 --- a/src/datadog_api_client/v2/model/assignment_result.py +++ b/src/datadog_api_client/v2/model/assignment_result.py @@ -11,6 +11,12 @@ class AssignmentResult(ModelNormal): + validations = { + "status": { + "inclusive_maximum": 599, + }, + } + @cached_property def openapi_types(_): return { diff --git a/src/datadog_api_client/v2/model/notification_rules_list_response.py b/src/datadog_api_client/v2/model/notification_rules_list_response.py new file mode 100644 index 0000000000..e3168dd5c6 --- /dev/null +++ b/src/datadog_api_client/v2/model/notification_rules_list_response.py @@ -0,0 +1,42 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.notification_rule import NotificationRule + + +class NotificationRulesListResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.notification_rule import NotificationRule + + return { + "data": ([NotificationRule],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: Union[List[NotificationRule], UnsetType] = unset, **kwargs): + """ + The list of notification rules. + + :param data: + :type data: [NotificationRule], optional + """ + if data is not unset: + kwargs["data"] = data + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 749e310dca..860f637df7 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -4628,6 +4628,7 @@ from datadog_api_client.v2.model.notification_rule import NotificationRule from datadog_api_client.v2.model.notification_rule_attributes import NotificationRuleAttributes from datadog_api_client.v2.model.notification_rule_response import NotificationRuleResponse +from datadog_api_client.v2.model.notification_rules_list_response import NotificationRulesListResponse from datadog_api_client.v2.model.notification_rules_type import NotificationRulesType from datadog_api_client.v2.model.notion_api_key import NotionAPIKey from datadog_api_client.v2.model.notion_api_key_type import NotionAPIKeyType @@ -12514,6 +12515,7 @@ "NotificationRule", "NotificationRuleAttributes", "NotificationRuleResponse", + "NotificationRulesListResponse", "NotificationRulesType", "NotionAPIKey", "NotionAPIKeyType",