Skip to content

Commit 06b1ac8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3e22927 of spec repo
1 parent 27f9b78 commit 06b1ac8

File tree

45 files changed

+809
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+809
-198
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 107 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11227,6 +11227,62 @@ components:
1122711227
required:
1122811228
- type
1122911229
type: object
11230+
ConfiguredScheduleTarget:
11231+
description: Represents a configured schedule target with a specific position
11232+
(previous, current, or next).
11233+
properties:
11234+
attributes:
11235+
$ref: '#/components/schemas/ConfiguredScheduleTargetAttributes'
11236+
id:
11237+
description: Specifies the unique identifier of the configured schedule
11238+
target.
11239+
example: 00000000-aba1-0000-0000-000000000000_previous
11240+
type: string
11241+
relationships:
11242+
$ref: '#/components/schemas/ConfiguredScheduleTargetRelationships'
11243+
type:
11244+
$ref: '#/components/schemas/ConfiguredScheduleTargetType'
11245+
required:
11246+
- type
11247+
- id
11248+
- attributes
11249+
- relationships
11250+
type: object
11251+
ConfiguredScheduleTargetAttributes:
11252+
description: Attributes for a configured schedule target, including position.
11253+
example:
11254+
position: previous
11255+
properties:
11256+
position:
11257+
$ref: '#/components/schemas/ScheduleTargetPosition'
11258+
required:
11259+
- position
11260+
type: object
11261+
ConfiguredScheduleTargetRelationships:
11262+
description: Represents the relationships of a configured schedule target.
11263+
properties:
11264+
schedule:
11265+
$ref: '#/components/schemas/ConfiguredScheduleTargetRelationshipsSchedule'
11266+
required:
11267+
- schedule
11268+
type: object
11269+
ConfiguredScheduleTargetRelationshipsSchedule:
11270+
description: Holds the schedule reference for a configured schedule target.
11271+
properties:
11272+
data:
11273+
$ref: '#/components/schemas/ScheduleTarget'
11274+
required:
11275+
- data
11276+
type: object
11277+
ConfiguredScheduleTargetType:
11278+
default: schedule_target
11279+
description: Indicates that the resource is of type `schedule_target`.
11280+
enum:
11281+
- schedule_target
11282+
example: schedule_target
11283+
type: string
11284+
x-enum-varnames:
11285+
- SCHEDULE_TARGET
1123011286
ConfluentAccountCreateRequest:
1123111287
description: Payload schema when adding a Confluent account.
1123211288
properties:
@@ -19014,6 +19070,7 @@ components:
1901419070
name:
1901519071
description: Specifies the name for the new escalation policy.
1901619072
example: On-Call Escalation Policy
19073+
minLength: 1
1901719074
type: string
1901819075
resolve_page_on_policy_end:
1901919076
description: Indicates whether the page is automatically resolved when the
@@ -19023,12 +19080,16 @@ components:
1902319080
description: Specifies how many times the escalation sequence is retried
1902419081
if there is no response.
1902519082
format: int64
19083+
maximum: 10
19084+
minimum: 0
1902619085
type: integer
1902719086
steps:
1902819087
description: A list of escalation steps, each defining assignment, escalation
1902919088
timeout, and targets for the new policy.
1903019089
items:
1903119090
$ref: '#/components/schemas/EscalationPolicyCreateRequestDataAttributesStepsItems'
19091+
maxItems: 10
19092+
minItems: 1
1903219093
type: array
1903319094
required:
1903419095
- name
@@ -19045,6 +19106,8 @@ components:
1904519106
step.
1904619107
example: 3600
1904719108
format: int64
19109+
maximum: 36000
19110+
minimum: 60
1904819111
type: integer
1904919112
targets:
1905019113
description: Specifies the collection of escalation targets for this step.
@@ -19096,6 +19159,7 @@ components:
1909619159
name:
1909719160
description: Specifies the name of the escalation policy.
1909819161
example: On-Call Escalation Policy
19162+
minLength: 1
1909919163
type: string
1910019164
resolve_page_on_policy_end:
1910119165
description: Indicates whether the page is automatically resolved when the
@@ -19105,6 +19169,8 @@ components:
1910519169
description: Specifies how many times the escalation sequence is retried
1910619170
if there is no response.
1910719171
format: int64
19172+
maximum: 10
19173+
minimum: 0
1910819174
type: integer
1910919175
required:
1911019176
- name
@@ -19171,6 +19237,7 @@ components:
1917119237
- $ref: '#/components/schemas/EscalationPolicyStep'
1917219238
- $ref: '#/components/schemas/EscalationPolicyUser'
1917319239
- $ref: '#/components/schemas/ScheduleData'
19240+
- $ref: '#/components/schemas/ConfiguredScheduleTarget'
1917419241
EscalationPolicyStep:
1917519242
description: Represents a single step in an escalation policy, including its
1917619243
attributes, relationships, and resource type.
@@ -19218,15 +19285,29 @@ components:
1921819285
type: object
1921919286
EscalationPolicyStepTarget:
1922019287
description: Defines a single escalation target within a step for an escalation
19221-
policy creation request. Contains `id` and `type`.
19288+
policy creation request. Contains `id`, `type`, and optional `config`.
1922219289
properties:
19290+
config:
19291+
$ref: '#/components/schemas/EscalationPolicyStepTargetConfig'
1922319292
id:
1922419293
description: Specifies the unique identifier for this target.
1922519294
example: 00000000-aba1-0000-0000-000000000000
1922619295
type: string
1922719296
type:
1922819297
$ref: '#/components/schemas/EscalationPolicyStepTargetType'
1922919298
type: object
19299+
EscalationPolicyStepTargetConfig:
19300+
description: Configuration for an escalation target, such as schedule position.
19301+
properties:
19302+
schedule:
19303+
$ref: '#/components/schemas/EscalationPolicyStepTargetConfigSchedule'
19304+
type: object
19305+
EscalationPolicyStepTargetConfigSchedule:
19306+
description: Schedule-specific configuration for an escalation target.
19307+
properties:
19308+
position:
19309+
$ref: '#/components/schemas/ScheduleTargetPosition'
19310+
type: object
1923019311
EscalationPolicyStepTargetType:
1923119312
description: Specifies the type of escalation target (example `users`, `schedules`,
1923219313
or `teams`).
@@ -19307,6 +19388,7 @@ components:
1930719388
name:
1930819389
description: Specifies the name of the escalation policy.
1930919390
example: On-Call Escalation Policy
19391+
minLength: 1
1931019392
type: string
1931119393
resolve_page_on_policy_end:
1931219394
description: Indicates whether the page is automatically resolved when the
@@ -19316,12 +19398,16 @@ components:
1931619398
description: Specifies how many times the escalation sequence is retried
1931719399
if there is no response.
1931819400
format: int64
19401+
maximum: 10
19402+
minimum: 0
1931919403
type: integer
1932019404
steps:
1932119405
description: A list of escalation steps, each defining assignment, escalation
1932219406
timeout, and targets.
1932319407
items:
1932419408
$ref: '#/components/schemas/EscalationPolicyUpdateRequestDataAttributesStepsItems'
19409+
maxItems: 10
19410+
minItems: 1
1932519411
type: array
1932619412
required:
1932719413
- name
@@ -19339,6 +19425,8 @@ components:
1933919425
step.
1934019426
example: 3600
1934119427
format: int64
19428+
maximum: 36000
19429+
minimum: 60
1934219430
type: integer
1934319431
id:
1934419432
description: Specifies the unique identifier of this step.
@@ -19447,12 +19535,13 @@ components:
1944719535
x-enum-varnames:
1944819536
- USERS
1944919537
EscalationTarget:
19450-
description: Represents an escalation target, which can be a team, user, or
19451-
schedule.
19538+
description: Represents an escalation target, which can be a team, user, schedule,
19539+
or configured schedule target.
1945219540
oneOf:
1945319541
- $ref: '#/components/schemas/TeamTarget'
1945419542
- $ref: '#/components/schemas/UserTarget'
1945519543
- $ref: '#/components/schemas/ScheduleTarget'
19544+
- $ref: '#/components/schemas/ConfiguredScheduleTarget'
1945619545
EscalationTargets:
1945719546
description: A list of escalation targets for a step
1945819547
properties:
@@ -44917,7 +45006,8 @@ components:
4491745006
type: object
4491845007
ScheduleTarget:
4491945008
description: Represents a schedule target for an escalation policy step, including
44920-
its ID and resource type.
45009+
its ID and resource type. This is a shortcut for a configured schedule target
45010+
with position set to 'current'.
4492145011
properties:
4492245012
id:
4492345013
description: Specifies the unique identifier of the schedule resource.
@@ -44929,6 +45019,19 @@ components:
4492945019
- type
4493045020
- id
4493145021
type: object
45022+
ScheduleTargetPosition:
45023+
description: Specifies the position of a schedule target (example `previous`,
45024+
`current`, or `next`).
45025+
enum:
45026+
- previous
45027+
- current
45028+
- next
45029+
example: previous
45030+
type: string
45031+
x-enum-varnames:
45032+
- PREVIOUS
45033+
- CURRENT
45034+
- NEXT
4493245035
ScheduleTargetType:
4493345036
default: schedules
4493445037
description: Indicates that the resource is of type `schedules`.

docs/datadog_api_client.v2.model.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4344,6 +4344,41 @@ datadog\_api\_client.v2.model.config\_cat\_sdk\_key\_update module
43444344
:members:
43454345
:show-inheritance:
43464346

4347+
datadog\_api\_client.v2.model.configured\_schedule\_target module
4348+
-----------------------------------------------------------------
4349+
4350+
.. automodule:: datadog_api_client.v2.model.configured_schedule_target
4351+
:members:
4352+
:show-inheritance:
4353+
4354+
datadog\_api\_client.v2.model.configured\_schedule\_target\_attributes module
4355+
-----------------------------------------------------------------------------
4356+
4357+
.. automodule:: datadog_api_client.v2.model.configured_schedule_target_attributes
4358+
:members:
4359+
:show-inheritance:
4360+
4361+
datadog\_api\_client.v2.model.configured\_schedule\_target\_relationships module
4362+
--------------------------------------------------------------------------------
4363+
4364+
.. automodule:: datadog_api_client.v2.model.configured_schedule_target_relationships
4365+
:members:
4366+
:show-inheritance:
4367+
4368+
datadog\_api\_client.v2.model.configured\_schedule\_target\_relationships\_schedule module
4369+
------------------------------------------------------------------------------------------
4370+
4371+
.. automodule:: datadog_api_client.v2.model.configured_schedule_target_relationships_schedule
4372+
:members:
4373+
:show-inheritance:
4374+
4375+
datadog\_api\_client.v2.model.configured\_schedule\_target\_type module
4376+
-----------------------------------------------------------------------
4377+
4378+
.. automodule:: datadog_api_client.v2.model.configured_schedule_target_type
4379+
:members:
4380+
:show-inheritance:
4381+
43474382
datadog\_api\_client.v2.model.confluent\_account\_create\_request module
43484383
------------------------------------------------------------------------
43494384

@@ -7963,6 +7998,20 @@ datadog\_api\_client.v2.model.escalation\_policy\_step\_target module
79637998
:members:
79647999
:show-inheritance:
79658000

8001+
datadog\_api\_client.v2.model.escalation\_policy\_step\_target\_config module
8002+
-----------------------------------------------------------------------------
8003+
8004+
.. automodule:: datadog_api_client.v2.model.escalation_policy_step_target_config
8005+
:members:
8006+
:show-inheritance:
8007+
8008+
datadog\_api\_client.v2.model.escalation\_policy\_step\_target\_config\_schedule module
8009+
---------------------------------------------------------------------------------------
8010+
8011+
.. automodule:: datadog_api_client.v2.model.escalation_policy_step_target_config_schedule
8012+
:members:
8013+
:show-inheritance:
8014+
79668015
datadog\_api\_client.v2.model.escalation\_policy\_step\_target\_type module
79678016
---------------------------------------------------------------------------
79688017

@@ -19982,6 +20031,13 @@ datadog\_api\_client.v2.model.schedule\_target module
1998220031
:members:
1998320032
:show-inheritance:
1998420033

20034+
datadog\_api\_client.v2.model.schedule\_target\_position module
20035+
---------------------------------------------------------------
20036+
20037+
.. automodule:: datadog_api_client.v2.model.schedule_target_position
20038+
:members:
20039+
:show-inheritance:
20040+
1998520041
datadog\_api\_client.v2.model.schedule\_target\_type module
1998620042
-----------------------------------------------------------
1998720043

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.configured_schedule_target_attributes import ConfiguredScheduleTargetAttributes
16+
from datadog_api_client.v2.model.configured_schedule_target_relationships import (
17+
ConfiguredScheduleTargetRelationships,
18+
)
19+
from datadog_api_client.v2.model.configured_schedule_target_type import ConfiguredScheduleTargetType
20+
21+
22+
class ConfiguredScheduleTarget(ModelNormal):
23+
@cached_property
24+
def openapi_types(_):
25+
from datadog_api_client.v2.model.configured_schedule_target_attributes import ConfiguredScheduleTargetAttributes
26+
from datadog_api_client.v2.model.configured_schedule_target_relationships import (
27+
ConfiguredScheduleTargetRelationships,
28+
)
29+
from datadog_api_client.v2.model.configured_schedule_target_type import ConfiguredScheduleTargetType
30+
31+
return {
32+
"attributes": (ConfiguredScheduleTargetAttributes,),
33+
"id": (str,),
34+
"relationships": (ConfiguredScheduleTargetRelationships,),
35+
"type": (ConfiguredScheduleTargetType,),
36+
}
37+
38+
attribute_map = {
39+
"attributes": "attributes",
40+
"id": "id",
41+
"relationships": "relationships",
42+
"type": "type",
43+
}
44+
45+
def __init__(
46+
self_,
47+
attributes: ConfiguredScheduleTargetAttributes,
48+
id: str,
49+
relationships: ConfiguredScheduleTargetRelationships,
50+
type: ConfiguredScheduleTargetType,
51+
**kwargs,
52+
):
53+
"""
54+
Represents a configured schedule target with a specific position (previous, current, or next).
55+
56+
:param attributes: Attributes for a configured schedule target, including position.
57+
:type attributes: ConfiguredScheduleTargetAttributes
58+
59+
:param id: Specifies the unique identifier of the configured schedule target.
60+
:type id: str
61+
62+
:param relationships: Represents the relationships of a configured schedule target.
63+
:type relationships: ConfiguredScheduleTargetRelationships
64+
65+
:param type: Indicates that the resource is of type ``schedule_target``.
66+
:type type: ConfiguredScheduleTargetType
67+
"""
68+
super().__init__(kwargs)
69+
70+
self_.attributes = attributes
71+
self_.id = id
72+
self_.relationships = relationships
73+
self_.type = type

0 commit comments

Comments
 (0)