Skip to content

Commit 20247ea

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 64cbc01 of spec repo
1 parent 4b41479 commit 20247ea

File tree

5 files changed

+77
-10
lines changed

5 files changed

+77
-10
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18654,7 +18654,7 @@ components:
1865418654
finished_at: 1693491984000000000
1865518655
git:
1865618656
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
18657-
repository_url: https://github.com/organization/example-repository
18657+
repository_id: github.com/organization/example-repository
1865818658
service: shopist
1865918659
started_at: 1693491974000000000
1866018660
team: backend
@@ -18685,7 +18685,7 @@ components:
1868518685
format: int64
1868618686
type: integer
1868718687
git:
18688-
$ref: '#/components/schemas/DORAGitInfo'
18688+
$ref: '#/components/schemas/DORAGitInfoResponse'
1868918689
service:
1869018690
description: Service name.
1869118691
example: shopist
@@ -18896,7 +18896,7 @@ components:
1889618896
finished_at: 1693491984000000000
1889718897
git:
1889818898
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
18899-
repository_url: https://github.com/organization/example-repository
18899+
repository_id: github.com/organization/example-repository
1890018900
service: shopist
1890118901
started_at: 1693491974000000000
1890218902
team: backend
@@ -18911,7 +18911,7 @@ components:
1891118911
finished_at: 1693492084000000000
1891218912
git:
1891318913
commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599
18914-
repository_url: https://github.com/organization/api-service
18914+
repository_id: github.com/organization/api-service
1891518915
service: api-service
1891618916
started_at: 1693492074000000000
1891718917
team: backend
@@ -19085,6 +19085,17 @@ components:
1908519085
- repository_url
1908619086
- commit_sha
1908719087
type: object
19088+
DORAGitInfoResponse:
19089+
description: Git info returned by DORA Metrics events.
19090+
properties:
19091+
commit_sha:
19092+
$ref: '#/components/schemas/GitCommitSHA'
19093+
repository_id:
19094+
$ref: '#/components/schemas/GitRepositoryID'
19095+
required:
19096+
- repository_id
19097+
- commit_sha
19098+
type: object
1908819099
DORAIncidentObject:
1908919100
description: A DORA incident event.
1909019101
example:
@@ -28632,6 +28643,10 @@ components:
2863228643
example: 66adc9350f2cc9b250b69abddab733dd55e1a588
2863328644
pattern: ^[a-fA-F0-9]{40,}$
2863428645
type: string
28646+
GitRepositoryID:
28647+
description: Git Repository ID
28648+
example: github.com/organization/example-repository
28649+
type: string
2863528650
GitRepositoryURL:
2863628651
description: Git Repository URL
2863728652
example: https://github.com/organization/example-repository

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8726,6 +8726,13 @@ datadog\_api\_client.v2.model.dora\_git\_info module
87268726
:members:
87278727
:show-inheritance:
87288728

8729+
datadog\_api\_client.v2.model.dora\_git\_info\_response module
8730+
--------------------------------------------------------------
8731+
8732+
.. automodule:: datadog_api_client.v2.model.dora_git_info_response
8733+
:members:
8734+
:show-inheritance:
8735+
87298736
datadog\_api\_client.v2.model.dora\_incident\_object module
87308737
-----------------------------------------------------------
87318738

src/datadog_api_client/v2/model/dora_deployment_object_attributes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515

1616

1717
if TYPE_CHECKING:
18-
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
18+
from datadog_api_client.v2.model.dora_git_info_response import DORAGitInfoResponse
1919

2020

2121
class DORADeploymentObjectAttributes(ModelNormal):
2222
@cached_property
2323
def openapi_types(_):
24-
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
24+
from datadog_api_client.v2.model.dora_git_info_response import DORAGitInfoResponse
2525

2626
return {
2727
"custom_tags": ([str],),
2828
"env": (str,),
2929
"finished_at": (int,),
30-
"git": (DORAGitInfo,),
30+
"git": (DORAGitInfoResponse,),
3131
"service": (str,),
3232
"started_at": (int,),
3333
"team": (str,),
@@ -52,7 +52,7 @@ def __init__(
5252
started_at: int,
5353
custom_tags: Union[List[str], none_type, UnsetType] = unset,
5454
env: Union[str, UnsetType] = unset,
55-
git: Union[DORAGitInfo, UnsetType] = unset,
55+
git: Union[DORAGitInfoResponse, UnsetType] = unset,
5656
team: Union[str, UnsetType] = unset,
5757
version: Union[str, UnsetType] = unset,
5858
**kwargs,
@@ -69,8 +69,8 @@ def __init__(
6969
:param finished_at: Unix timestamp when the deployment finished.
7070
:type finished_at: int
7171
72-
:param git: Git info for DORA Metrics events.
73-
:type git: DORAGitInfo, optional
72+
:param git: Git info returned by DORA Metrics events.
73+
:type git: DORAGitInfoResponse, optional
7474
7575
:param service: Service name.
7676
:type service: str
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
7+
from datadog_api_client.model_utils import (
8+
ModelNormal,
9+
cached_property,
10+
)
11+
12+
13+
class DORAGitInfoResponse(ModelNormal):
14+
validations = {
15+
"commit_sha": {},
16+
}
17+
18+
@cached_property
19+
def openapi_types(_):
20+
return {
21+
"commit_sha": (str,),
22+
"repository_id": (str,),
23+
}
24+
25+
attribute_map = {
26+
"commit_sha": "commit_sha",
27+
"repository_id": "repository_id",
28+
}
29+
30+
def __init__(self_, commit_sha: str, repository_id: str, **kwargs):
31+
"""
32+
Git info returned by DORA Metrics events.
33+
34+
:param commit_sha: Git Commit SHA.
35+
:type commit_sha: str
36+
37+
:param repository_id: Git Repository ID
38+
:type repository_id: str
39+
"""
40+
super().__init__(kwargs)
41+
42+
self_.commit_sha = commit_sha
43+
self_.repository_id = repository_id

src/datadog_api_client/v2/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,7 @@
15451545
from datadog_api_client.v2.model.dora_failure_type import DORAFailureType
15461546
from datadog_api_client.v2.model.dora_failures_list_response import DORAFailuresListResponse
15471547
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
1548+
from datadog_api_client.v2.model.dora_git_info_response import DORAGitInfoResponse
15481549
from datadog_api_client.v2.model.dora_incident_object import DORAIncidentObject
15491550
from datadog_api_client.v2.model.dora_incident_object_attributes import DORAIncidentObjectAttributes
15501551
from datadog_api_client.v2.model.dora_list_deployments_request import DORAListDeploymentsRequest
@@ -7559,6 +7560,7 @@
75597560
"DORAFailureType",
75607561
"DORAFailuresListResponse",
75617562
"DORAGitInfo",
7563+
"DORAGitInfoResponse",
75627564
"DORAIncidentObject",
75637565
"DORAIncidentObjectAttributes",
75647566
"DORAListDeploymentsRequest",

0 commit comments

Comments
 (0)