Skip to content

Commit 504132a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8b1782a4 of spec repo
1 parent 0fb8e8d commit 504132a

11 files changed

+305
-81
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-07-26 17:14:49.920957",
8-
"spec_repo_commit": "69e8c6e4"
7+
"regenerated": "2023-07-27 14:59:04.951426",
8+
"spec_repo_commit": "8b1782a4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-26 17:14:49.933340",
13-
"spec_repo_commit": "69e8c6e4"
12+
"regenerated": "2023-07-27 14:59:04.967582",
13+
"spec_repo_commit": "8b1782a4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 65 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,32 +1475,6 @@ components:
14751475
type: string
14761476
x-enum-varnames:
14771477
- CIPIPELINE_RESOURCE_REQUEST
1478-
CIAppEventAttributes:
1479-
description: JSON object containing all event attributes and their associated
1480-
values.
1481-
properties:
1482-
attributes:
1483-
additionalProperties: {}
1484-
description: JSON object of attributes from CI Visibility events.
1485-
example:
1486-
customAttribute: 123
1487-
duration: 2345
1488-
type: object
1489-
service:
1490-
description: 'The name of the application or service generating CI Visibility
1491-
events.
1492-
1493-
It is used to switch from CI Visibility to APM, so make sure you define
1494-
the same
1495-
1496-
value when you use both products.'
1497-
example: web-ui-tests
1498-
type: string
1499-
tags:
1500-
$ref: '#/components/schemas/TagsEventAttribute'
1501-
timestamp:
1502-
$ref: '#/components/schemas/TimestampEventAttribute'
1503-
type: object
15041478
CIAppGitInfo:
15051479
description: 'If pipelines are triggered due to actions to a Git repository,
15061480
then all payloads must contain this.
@@ -1661,14 +1635,30 @@ components:
16611635
stored by Datadog.
16621636
properties:
16631637
attributes:
1664-
$ref: '#/components/schemas/CIAppEventAttributes'
1638+
$ref: '#/components/schemas/CIAppPipelineEventAttributes'
16651639
id:
16661640
description: Unique ID of the event.
16671641
example: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA
16681642
type: string
16691643
type:
16701644
$ref: '#/components/schemas/CIAppPipelineEventTypeName'
16711645
type: object
1646+
CIAppPipelineEventAttributes:
1647+
description: JSON object containing all event attributes and their associated
1648+
values.
1649+
properties:
1650+
attributes:
1651+
additionalProperties: {}
1652+
description: JSON object of attributes from CI Visibility pipeline events.
1653+
example:
1654+
customAttribute: 123
1655+
duration: 2345
1656+
type: object
1657+
ci_level:
1658+
$ref: '#/components/schemas/CIAppPipelineLevel'
1659+
tags:
1660+
$ref: '#/components/schemas/TagsEventAttribute'
1661+
type: object
16721662
CIAppPipelineEventJob:
16731663
description: Details of a CI job.
16741664
properties:
@@ -2190,6 +2180,22 @@ components:
21902180
meta:
21912181
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
21922182
type: object
2183+
CIAppPipelineLevel:
2184+
description: Pipeline execution level.
2185+
enum:
2186+
- pipeline
2187+
- stage
2188+
- job
2189+
- step
2190+
- custom
2191+
example: pipeline
2192+
type: string
2193+
x-enum-varnames:
2194+
- PIPELINE
2195+
- STAGE
2196+
- JOB
2197+
- STEP
2198+
- CUSTOM
21932199
CIAppPipelinesAggregateRequest:
21942200
description: The object sent with the request to retrieve aggregation buckets
21952201
of pipeline events from your organization.
@@ -2421,14 +2427,30 @@ components:
24212427
by Datadog.
24222428
properties:
24232429
attributes:
2424-
$ref: '#/components/schemas/CIAppEventAttributes'
2430+
$ref: '#/components/schemas/CIAppTestEventAttributes'
24252431
id:
24262432
description: Unique ID of the event.
24272433
example: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA
24282434
type: string
24292435
type:
24302436
$ref: '#/components/schemas/CIAppTestEventTypeName'
24312437
type: object
2438+
CIAppTestEventAttributes:
2439+
description: JSON object containing all event attributes and their associated
2440+
values.
2441+
properties:
2442+
attributes:
2443+
additionalProperties: {}
2444+
description: JSON object of attributes from CI Visibility test events.
2445+
example:
2446+
customAttribute: 123
2447+
duration: 2345
2448+
type: object
2449+
tags:
2450+
$ref: '#/components/schemas/TagsEventAttribute'
2451+
test_level:
2452+
$ref: '#/components/schemas/CIAppTestLevel'
2453+
type: object
24322454
CIAppTestEventTypeName:
24332455
description: Type of the event.
24342456
enum:
@@ -2463,6 +2485,20 @@ components:
24632485
meta:
24642486
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
24652487
type: object
2488+
CIAppTestLevel:
2489+
description: Test run level.
2490+
enum:
2491+
- session
2492+
- module
2493+
- suite
2494+
- test
2495+
example: test
2496+
type: string
2497+
x-enum-varnames:
2498+
- SESSION
2499+
- MODULE
2500+
- SUITE
2501+
- TEST
24662502
CIAppTestsAggregateRequest:
24672503
description: The object sent with the request to retrieve aggregation buckets
24682504
of test events from your organization.
@@ -2500,7 +2536,7 @@ components:
25002536
links:
25012537
$ref: '#/components/schemas/CIAppResponseLinks'
25022538
meta:
2503-
$ref: '#/components/schemas/CIAppResponseMetadata'
2539+
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
25042540
type: object
25052541
CIAppTestsBucketResponse:
25062542
description: Bucket values.
@@ -16579,11 +16615,6 @@ components:
1657916615
items:
1658016616
$ref: '#/components/schemas/TimeseriesResponseValues'
1658116617
type: array
16582-
TimestampEventAttribute:
16583-
description: Timestamp of your event.
16584-
example: '2019-01-02T09:42:36.320Z'
16585-
format: date-time
16586-
type: string
1658716618
Unit:
1658816619
description: Object containing the metric unit family, scale factor, name, and
1658916620
short name.

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -498,13 +498,6 @@ ci\_app\_create\_pipeline\_event\_request\_data\_type
498498
:members:
499499
:show-inheritance:
500500

501-
ci\_app\_event\_attributes
502-
--------------------------
503-
504-
.. automodule:: datadog_api_client.v2.model.ci_app_event_attributes
505-
:members:
506-
:show-inheritance:
507-
508501
ci\_app\_git\_info
509502
------------------
510503

@@ -547,6 +540,13 @@ ci\_app\_pipeline\_event
547540
:members:
548541
:show-inheritance:
549542

543+
ci\_app\_pipeline\_event\_attributes
544+
------------------------------------
545+
546+
.. automodule:: datadog_api_client.v2.model.ci_app_pipeline_event_attributes
547+
:members:
548+
:show-inheritance:
549+
550550
ci\_app\_pipeline\_event\_job
551551
-----------------------------
552552

@@ -673,6 +673,13 @@ ci\_app\_pipeline\_events\_response
673673
:members:
674674
:show-inheritance:
675675

676+
ci\_app\_pipeline\_level
677+
------------------------
678+
679+
.. automodule:: datadog_api_client.v2.model.ci_app_pipeline_level
680+
:members:
681+
:show-inheritance:
682+
676683
ci\_app\_pipelines\_aggregate\_request
677684
--------------------------------------
678685

@@ -785,6 +792,13 @@ ci\_app\_test\_event
785792
:members:
786793
:show-inheritance:
787794

795+
ci\_app\_test\_event\_attributes
796+
--------------------------------
797+
798+
.. automodule:: datadog_api_client.v2.model.ci_app_test_event_attributes
799+
:members:
800+
:show-inheritance:
801+
788802
ci\_app\_test\_event\_type\_name
789803
--------------------------------
790804

@@ -806,6 +820,13 @@ ci\_app\_test\_events\_response
806820
:members:
807821
:show-inheritance:
808822

823+
ci\_app\_test\_level
824+
--------------------
825+
826+
.. automodule:: datadog_api_client.v2.model.ci_app_test_level
827+
:members:
828+
:show-inheritance:
829+
809830
ci\_app\_tests\_aggregate\_request
810831
----------------------------------
811832

src/datadog_api_client/v2/model/ci_app_pipeline_event.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414

1515

1616
if TYPE_CHECKING:
17-
from datadog_api_client.v2.model.ci_app_event_attributes import CIAppEventAttributes
17+
from datadog_api_client.v2.model.ci_app_pipeline_event_attributes import CIAppPipelineEventAttributes
1818
from datadog_api_client.v2.model.ci_app_pipeline_event_type_name import CIAppPipelineEventTypeName
1919

2020

2121
class CIAppPipelineEvent(ModelNormal):
2222
@cached_property
2323
def openapi_types(_):
24-
from datadog_api_client.v2.model.ci_app_event_attributes import CIAppEventAttributes
24+
from datadog_api_client.v2.model.ci_app_pipeline_event_attributes import CIAppPipelineEventAttributes
2525
from datadog_api_client.v2.model.ci_app_pipeline_event_type_name import CIAppPipelineEventTypeName
2626

2727
return {
28-
"attributes": (CIAppEventAttributes,),
28+
"attributes": (CIAppPipelineEventAttributes,),
2929
"id": (str,),
3030
"type": (CIAppPipelineEventTypeName,),
3131
}
@@ -38,7 +38,7 @@ def openapi_types(_):
3838

3939
def __init__(
4040
self_,
41-
attributes: Union[CIAppEventAttributes, UnsetType] = unset,
41+
attributes: Union[CIAppPipelineEventAttributes, UnsetType] = unset,
4242
id: Union[str, UnsetType] = unset,
4343
type: Union[CIAppPipelineEventTypeName, UnsetType] = unset,
4444
**kwargs,
@@ -47,7 +47,7 @@ def __init__(
4747
Object description of a pipeline event after being processed and stored by Datadog.
4848
4949
:param attributes: JSON object containing all event attributes and their associated values.
50-
:type attributes: CIAppEventAttributes, optional
50+
:type attributes: CIAppPipelineEventAttributes, optional
5151
5252
:param id: Unique ID of the event.
5353
:type id: str, optional

src/datadog_api_client/v2/model/ci_app_event_attributes.py renamed to src/datadog_api_client/v2/model/ci_app_pipeline_event_attributes.py

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717

1818

1919
if TYPE_CHECKING:
20+
from datadog_api_client.v2.model.ci_app_pipeline_level import CIAppPipelineLevel
2021
from datadog_api_client.v2.model.tags_event_attribute import TagsEventAttribute
2122

2223

23-
class CIAppEventAttributes(ModelNormal):
24+
class CIAppPipelineEventAttributes(ModelNormal):
2425
@cached_property
2526
def openapi_types(_):
27+
from datadog_api_client.v2.model.ci_app_pipeline_level import CIAppPipelineLevel
2628
from datadog_api_client.v2.model.tags_event_attribute import TagsEventAttribute
2729

2830
return {
@@ -41,49 +43,39 @@ def openapi_types(_):
4143
)
4244
},
4345
),
44-
"service": (str,),
46+
"ci_level": (CIAppPipelineLevel,),
4547
"tags": (TagsEventAttribute,),
46-
"timestamp": (datetime,),
4748
}
4849

4950
attribute_map = {
5051
"attributes": "attributes",
51-
"service": "service",
52+
"ci_level": "ci_level",
5253
"tags": "tags",
53-
"timestamp": "timestamp",
5454
}
5555

5656
def __init__(
5757
self_,
5858
attributes: Union[Dict[str, Any], UnsetType] = unset,
59-
service: Union[str, UnsetType] = unset,
59+
ci_level: Union[CIAppPipelineLevel, UnsetType] = unset,
6060
tags: Union[TagsEventAttribute, UnsetType] = unset,
61-
timestamp: Union[datetime, UnsetType] = unset,
6261
**kwargs,
6362
):
6463
"""
6564
JSON object containing all event attributes and their associated values.
6665
67-
:param attributes: JSON object of attributes from CI Visibility events.
66+
:param attributes: JSON object of attributes from CI Visibility pipeline events.
6867
:type attributes: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional
6968
70-
:param service: The name of the application or service generating CI Visibility events.
71-
It is used to switch from CI Visibility to APM, so make sure you define the same
72-
value when you use both products.
73-
:type service: str, optional
69+
:param ci_level: Pipeline execution level.
70+
:type ci_level: CIAppPipelineLevel, optional
7471
7572
:param tags: Array of tags associated with your event.
7673
:type tags: TagsEventAttribute, optional
77-
78-
:param timestamp: Timestamp of your event.
79-
:type timestamp: datetime, optional
8074
"""
8175
if attributes is not unset:
8276
kwargs["attributes"] = attributes
83-
if service is not unset:
84-
kwargs["service"] = service
77+
if ci_level is not unset:
78+
kwargs["ci_level"] = ci_level
8579
if tags is not unset:
8680
kwargs["tags"] = tags
87-
if timestamp is not unset:
88-
kwargs["timestamp"] = timestamp
8981
super().__init__(kwargs)

0 commit comments

Comments
 (0)