Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
7 changes: 6 additions & 1 deletion src/datadog_api_client/v2/api/incidents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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(
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v2/model/full_api_key_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
}

Expand All @@ -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 = {
Expand All @@ -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,
):
Expand Down Expand Up @@ -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
"""
Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
}

Expand All @@ -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 = {
Expand All @@ -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,
):
Expand All @@ -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
"""
Expand All @@ -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)
Loading