Skip to content

Commit aa26d04

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use repository_id in DORA deployment GET docs (#3609)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 8323cb4 commit aa26d04

File tree

5 files changed

+88
-8
lines changed

5 files changed

+88
-8
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

packages/datadog-api-client-v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,6 +2454,7 @@ export { DORAFailureResponseData } from "./models/DORAFailureResponseData";
24542454
export { DORAFailuresListResponse } from "./models/DORAFailuresListResponse";
24552455
export { DORAFailureType } from "./models/DORAFailureType";
24562456
export { DORAGitInfo } from "./models/DORAGitInfo";
2457+
export { DORAGitInfoResponse } from "./models/DORAGitInfoResponse";
24572458
export { DORAIncidentObject } from "./models/DORAIncidentObject";
24582459
export { DORAIncidentObjectAttributes } from "./models/DORAIncidentObjectAttributes";
24592460
export { DORAListDeploymentsRequest } from "./models/DORAListDeploymentsRequest";

packages/datadog-api-client-v2/models/DORADeploymentObjectAttributes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { DORAGitInfo } from "./DORAGitInfo";
6+
import { DORAGitInfoResponse } from "./DORAGitInfoResponse";
77

88
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
99

@@ -24,9 +24,9 @@ export class DORADeploymentObjectAttributes {
2424
*/
2525
"finishedAt": number;
2626
/**
27-
* Git info for DORA Metrics events.
27+
* Git info returned by DORA Metrics events.
2828
*/
29-
"git"?: DORAGitInfo;
29+
"git"?: DORAGitInfoResponse;
3030
/**
3131
* Service name.
3232
*/
@@ -76,7 +76,7 @@ export class DORADeploymentObjectAttributes {
7676
},
7777
git: {
7878
baseName: "git",
79-
type: "DORAGitInfo",
79+
type: "DORAGitInfoResponse",
8080
},
8181
service: {
8282
baseName: "service",
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Git info returned by DORA Metrics events.
11+
*/
12+
export class DORAGitInfoResponse {
13+
/**
14+
* Git Commit SHA.
15+
*/
16+
"commitSha": string;
17+
/**
18+
* Git Repository ID
19+
*/
20+
"repositoryId": string;
21+
22+
/**
23+
* A container for additional, undeclared properties.
24+
* This is a holder for any undeclared properties as specified with
25+
* the 'additionalProperties' keyword in the OAS document.
26+
*/
27+
"additionalProperties"?: { [key: string]: any };
28+
29+
/**
30+
* @ignore
31+
*/
32+
"_unparsed"?: boolean;
33+
34+
/**
35+
* @ignore
36+
*/
37+
static readonly attributeTypeMap: AttributeTypeMap = {
38+
commitSha: {
39+
baseName: "commit_sha",
40+
type: "string",
41+
required: true,
42+
},
43+
repositoryId: {
44+
baseName: "repository_id",
45+
type: "string",
46+
required: true,
47+
},
48+
additionalProperties: {
49+
baseName: "additionalProperties",
50+
type: "{ [key: string]: any; }",
51+
},
52+
};
53+
54+
/**
55+
* @ignore
56+
*/
57+
static getAttributeTypeMap(): AttributeTypeMap {
58+
return DORAGitInfoResponse.attributeTypeMap;
59+
}
60+
61+
public constructor() {}
62+
}

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ import { DORAFailureResponse } from "./DORAFailureResponse";
848848
import { DORAFailureResponseData } from "./DORAFailureResponseData";
849849
import { DORAFailuresListResponse } from "./DORAFailuresListResponse";
850850
import { DORAGitInfo } from "./DORAGitInfo";
851+
import { DORAGitInfoResponse } from "./DORAGitInfoResponse";
851852
import { DORAIncidentObject } from "./DORAIncidentObject";
852853
import { DORAIncidentObjectAttributes } from "./DORAIncidentObjectAttributes";
853854
import { DORAListDeploymentsRequest } from "./DORAListDeploymentsRequest";
@@ -6492,6 +6493,7 @@ const typeMap: { [index: string]: any } = {
64926493
DORAFailureResponseData: DORAFailureResponseData,
64936494
DORAFailuresListResponse: DORAFailuresListResponse,
64946495
DORAGitInfo: DORAGitInfo,
6496+
DORAGitInfoResponse: DORAGitInfoResponse,
64956497
DORAIncidentObject: DORAIncidentObject,
64966498
DORAIncidentObjectAttributes: DORAIncidentObjectAttributes,
64976499
DORAListDeploymentsRequest: DORAListDeploymentsRequest,

0 commit comments

Comments
 (0)