diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index daf2244ff5..25bd6ef283 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -44920,6 +44920,9 @@ components: description: Name of the API key. example: "API Key for submitting metrics" type: string + private_action_runner_enroll_enabled: + description: Whether the API key can enroll a Private Action Runner. + type: boolean remote_config_read_enabled: description: The remote config read enabled status. type: boolean @@ -84281,6 +84284,9 @@ components: description: Name of the API key. example: "API Key for submitting metrics" type: string + private_action_runner_enroll_enabled: + description: Whether the API key can enroll a Private Action Runner. + type: boolean remote_config_read_enabled: description: The remote config read enabled status. type: boolean @@ -164173,7 +164179,12 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/incidents/{incident_id}/cases/page: post: - description: Create a page from an incident using the Cases service. + deprecated: true + description: |- + Create a page from an incident using the Cases service. + + **Deprecated**: This endpoint is deprecated. Use + [Create an on-call page from an incident](#create-an-on-call-page-from-an-incident) instead. operationId: CreatePageFromIncident parameters: - $ref: "#/components/parameters/IncidentIDPathParameter" diff --git a/src/datadog_api_client/v2/api/incidents_api.py b/src/datadog_api_client/v2/api/incidents_api.py index 8a98542b1b..5ea7dabd62 100644 --- a/src/datadog_api_client/v2/api/incidents_api.py +++ b/src/datadog_api_client/v2/api/incidents_api.py @@ -5,6 +5,7 @@ import collections from typing import Any, Dict, List, Union +import warnings from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration @@ -3017,10 +3018,13 @@ def create_page_from_incident( incident_id: str, body: IncidentCreatePageFromIncidentRequest, ) -> IncidentPageUUIDResponse: - """Create a page from an incident. + """Create a page from an incident. **Deprecated**. Create a page from an incident using the Cases service. + **Deprecated** : This endpoint is deprecated. Use + `Create an on-call page from an incident <#create-an-on-call-page-from-an-incident>`_ instead. + :param incident_id: The UUID of the incident. :type incident_id: str :param body: Page creation payload. @@ -3032,6 +3036,7 @@ def create_page_from_incident( kwargs["body"] = body + warnings.warn("create_page_from_incident is deprecated", DeprecationWarning, stacklevel=2) return self._create_page_from_incident_endpoint.call_with_http_info(**kwargs) def create_timestamp_override( diff --git a/src/datadog_api_client/v2/model/full_api_key_attributes.py b/src/datadog_api_client/v2/model/full_api_key_attributes.py index 5b45d1be1f..1927e47625 100644 --- a/src/datadog_api_client/v2/model/full_api_key_attributes.py +++ b/src/datadog_api_client/v2/model/full_api_key_attributes.py @@ -33,6 +33,7 @@ def openapi_types(_): "last4": (str,), "modified_at": (datetime,), "name": (str,), + "private_action_runner_enroll_enabled": (bool,), "remote_config_read_enabled": (bool,), } @@ -44,6 +45,7 @@ def openapi_types(_): "last4": "last4", "modified_at": "modified_at", "name": "name", + "private_action_runner_enroll_enabled": "private_action_runner_enroll_enabled", "remote_config_read_enabled": "remote_config_read_enabled", } read_only_vars = { @@ -63,6 +65,7 @@ def __init__( last4: Union[str, UnsetType] = unset, modified_at: Union[datetime, UnsetType] = unset, name: Union[str, UnsetType] = unset, + private_action_runner_enroll_enabled: Union[bool, UnsetType] = unset, remote_config_read_enabled: Union[bool, UnsetType] = unset, **kwargs, ): @@ -90,6 +93,9 @@ def __init__( :param name: Name of the API key. :type name: str, optional + :param private_action_runner_enroll_enabled: Whether the API key can enroll a Private Action Runner. + :type private_action_runner_enroll_enabled: bool, optional + :param remote_config_read_enabled: The remote config read enabled status. :type remote_config_read_enabled: bool, optional """ @@ -107,6 +113,8 @@ def __init__( kwargs["modified_at"] = modified_at if name is not unset: kwargs["name"] = name + if private_action_runner_enroll_enabled is not unset: + kwargs["private_action_runner_enroll_enabled"] = private_action_runner_enroll_enabled if remote_config_read_enabled is not unset: kwargs["remote_config_read_enabled"] = remote_config_read_enabled super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/partial_api_key_attributes.py b/src/datadog_api_client/v2/model/partial_api_key_attributes.py index 6142d34907..7c9853042b 100644 --- a/src/datadog_api_client/v2/model/partial_api_key_attributes.py +++ b/src/datadog_api_client/v2/model/partial_api_key_attributes.py @@ -32,6 +32,7 @@ def openapi_types(_): "last4": (str,), "modified_at": (str,), "name": (str,), + "private_action_runner_enroll_enabled": (bool,), "remote_config_read_enabled": (bool,), } @@ -42,6 +43,7 @@ def openapi_types(_): "last4": "last4", "modified_at": "modified_at", "name": "name", + "private_action_runner_enroll_enabled": "private_action_runner_enroll_enabled", "remote_config_read_enabled": "remote_config_read_enabled", } read_only_vars = { @@ -59,6 +61,7 @@ def __init__( last4: Union[str, UnsetType] = unset, modified_at: Union[str, UnsetType] = unset, name: Union[str, UnsetType] = unset, + private_action_runner_enroll_enabled: Union[bool, UnsetType] = unset, remote_config_read_enabled: Union[bool, UnsetType] = unset, **kwargs, ): @@ -83,6 +86,9 @@ def __init__( :param name: Name of the API key. :type name: str, optional + :param private_action_runner_enroll_enabled: Whether the API key can enroll a Private Action Runner. + :type private_action_runner_enroll_enabled: bool, optional + :param remote_config_read_enabled: The remote config read enabled status. :type remote_config_read_enabled: bool, optional """ @@ -98,6 +104,8 @@ def __init__( kwargs["modified_at"] = modified_at if name is not unset: kwargs["name"] = name + if private_action_runner_enroll_enabled is not unset: + kwargs["private_action_runner_enroll_enabled"] = private_action_runner_enroll_enabled if remote_config_read_enabled is not unset: kwargs["remote_config_read_enabled"] = remote_config_read_enabled super().__init__(kwargs)