Skip to content

Commit 047725e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b90a9c8 of spec repo (#3899)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent c922cc8 commit 047725e

6 files changed

Lines changed: 46 additions & 25 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7199,13 +7199,14 @@ components:
71997199
- fixes
72007200
type: object
72017201
Annotation:
7202-
description: "A list of annotations used in the workflow. These are like sticky notes for your workflow!"
7202+
description: A text annotation displayed on the workflow canvas.
72037203
properties:
72047204
display:
72057205
$ref: "#/components/schemas/AnnotationDisplay"
72067206
id:
7207-
description: The `Annotation` `id`.
7207+
description: The unique identifier of this annotation within the workflow.
72087208
example: ""
7209+
minLength: 1
72097210
type: string
72107211
markdownTextAnnotation:
72117212
$ref: "#/components/schemas/AnnotationMarkdownTextAnnotation"
@@ -7362,28 +7363,28 @@ components:
73627363
- attributes
73637364
type: object
73647365
AnnotationDisplay:
7365-
description: The definition of `AnnotationDisplay` object.
7366+
description: The annotation's position and size on the workflow canvas.
73667367
properties:
73677368
bounds:
73687369
$ref: "#/components/schemas/AnnotationDisplayBounds"
73697370
type: object
73707371
AnnotationDisplayBounds:
7371-
description: The definition of `AnnotationDisplayBounds` object.
7372+
description: Canvas coordinates and dimensions for an annotation on the workflow canvas.
73727373
properties:
73737374
height:
7374-
description: The `bounds` `height`.
7375+
description: The annotation's height on the canvas.
73757376
format: double
73767377
type: number
73777378
width:
7378-
description: The `bounds` `width`.
7379+
description: The annotation's width on the canvas.
73797380
format: double
73807381
type: number
73817382
x:
7382-
description: The `bounds` `x`.
7383+
description: The annotation's horizontal canvas coordinate.
73837384
format: double
73847385
type: number
73857386
y:
7386-
description: The `bounds` `y`.
7387+
description: The annotation's vertical canvas coordinate.
73877388
format: double
73887389
type: number
73897390
type: object
@@ -7467,10 +7468,11 @@ components:
74677468
- POINT_IN_TIME
74687469
- TIME_REGION
74697470
AnnotationMarkdownTextAnnotation:
7470-
description: The definition of `AnnotationMarkdownTextAnnotation` object.
7471+
description: Markdown content displayed in an annotation.
74717472
properties:
74727473
text:
7473-
description: The `markdownTextAnnotation` `text`.
7474+
description: The annotation's Markdown content.
7475+
maxLength: 3000
74747476
type: string
74757477
type: object
74767478
AnnotationRequestData:
@@ -107323,9 +107325,10 @@ components:
107323107325
description: A complete Workflow Automation definition, including its triggers, steps, and connections.
107324107326
properties:
107325107327
annotations:
107326-
description: "A list of annotations used in the workflow. These are like sticky notes for your workflow!"
107328+
description: Up to 100 text annotations displayed on the workflow canvas.
107327107329
items:
107328107330
$ref: "#/components/schemas/Annotation"
107331+
maxItems: 100
107329107332
type: array
107330107333
connectionEnvs:
107331107334
description: A list of connections or connection groups used in the workflow.

‎src/datadog_api_client/v2/model/annotation.py‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818

1919
class Annotation(ModelNormal):
20+
validations = {
21+
"id": {
22+
"min_length": 1,
23+
},
24+
}
25+
2026
@cached_property
2127
def openapi_types(_):
2228
from datadog_api_client.v2.model.annotation_display import AnnotationDisplay
@@ -38,15 +44,15 @@ def __init__(
3844
self_, display: AnnotationDisplay, id: str, markdown_text_annotation: AnnotationMarkdownTextAnnotation, **kwargs
3945
):
4046
"""
41-
A list of annotations used in the workflow. These are like sticky notes for your workflow!
47+
A text annotation displayed on the workflow canvas.
4248
43-
:param display: The definition of ``AnnotationDisplay`` object.
49+
:param display: The annotation's position and size on the workflow canvas.
4450
:type display: AnnotationDisplay
4551
46-
:param id: The ``Annotation`` ``id``.
52+
:param id: The unique identifier of this annotation within the workflow.
4753
:type id: str
4854
49-
:param markdown_text_annotation: The definition of ``AnnotationMarkdownTextAnnotation`` object.
55+
:param markdown_text_annotation: Markdown content displayed in an annotation.
5056
:type markdown_text_annotation: AnnotationMarkdownTextAnnotation
5157
"""
5258
super().__init__(kwargs)

‎src/datadog_api_client/v2/model/annotation_display.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def openapi_types(_):
3232

3333
def __init__(self_, bounds: Union[AnnotationDisplayBounds, UnsetType] = unset, **kwargs):
3434
"""
35-
The definition of ``AnnotationDisplay`` object.
35+
The annotation's position and size on the workflow canvas.
3636
37-
:param bounds: The definition of ``AnnotationDisplayBounds`` object.
37+
:param bounds: Canvas coordinates and dimensions for an annotation on the workflow canvas.
3838
:type bounds: AnnotationDisplayBounds, optional
3939
"""
4040
if bounds is not unset:

‎src/datadog_api_client/v2/model/annotation_display_bounds.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ def __init__(
3939
**kwargs,
4040
):
4141
"""
42-
The definition of ``AnnotationDisplayBounds`` object.
42+
Canvas coordinates and dimensions for an annotation on the workflow canvas.
4343
44-
:param height: The ``bounds`` ``height``.
44+
:param height: The annotation's height on the canvas.
4545
:type height: float, optional
4646
47-
:param width: The ``bounds`` ``width``.
47+
:param width: The annotation's width on the canvas.
4848
:type width: float, optional
4949
50-
:param x: The ``bounds`` ``x``.
50+
:param x: The annotation's horizontal canvas coordinate.
5151
:type x: float, optional
5252
53-
:param y: The ``bounds`` ``y``.
53+
:param y: The annotation's vertical canvas coordinate.
5454
:type y: float, optional
5555
"""
5656
if height is not unset:

‎src/datadog_api_client/v2/model/annotation_markdown_text_annotation.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414

1515

1616
class AnnotationMarkdownTextAnnotation(ModelNormal):
17+
validations = {
18+
"text": {
19+
"max_length": 3000,
20+
},
21+
}
22+
1723
@cached_property
1824
def openapi_types(_):
1925
return {
@@ -26,9 +32,9 @@ def openapi_types(_):
2632

2733
def __init__(self_, text: Union[str, UnsetType] = unset, **kwargs):
2834
"""
29-
The definition of ``AnnotationMarkdownTextAnnotation`` object.
35+
Markdown content displayed in an annotation.
3036
31-
:param text: The ``markdownTextAnnotation`` ``text``.
37+
:param text: The annotation's Markdown content.
3238
:type text: str, optional
3339
"""
3440
if text is not unset:

‎src/datadog_api_client/v2/model/spec.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343

4444

4545
class Spec(ModelNormal):
46+
validations = {
47+
"annotations": {
48+
"max_items": 100,
49+
},
50+
}
51+
4652
@cached_property
4753
def openapi_types(_):
4854
from datadog_api_client.v2.model.annotation import Annotation
@@ -113,7 +119,7 @@ def __init__(
113119
"""
114120
A complete Workflow Automation definition, including its triggers, steps, and connections.
115121
116-
:param annotations: A list of annotations used in the workflow. These are like sticky notes for your workflow!
122+
:param annotations: Up to 100 text annotations displayed on the workflow canvas.
117123
:type annotations: [Annotation], optional
118124
119125
:param connection_envs: A list of connections or connection groups used in the workflow.

0 commit comments

Comments
 (0)