Skip to content

Commit f0ae158

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 919fef7 of spec repo
1 parent 3916fd1 commit f0ae158

27 files changed

Lines changed: 1724 additions & 84 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 281 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
@endpoint(entity-integration-configs) @endpoint(entity-integration-configs-v2)
2+
Feature: Entity Integration Configs
3+
Manage per-integration configurations for the Internal Developer Portal
4+
(IDP). These configurations control which external resources (for example,
5+
GitHub repositories, Jira projects, or PagerDuty services) are synced as
6+
entities into the Software Catalog.
7+
8+
Background:
9+
Given a valid "apiKeyAuth" key in the system
10+
And a valid "appKeyAuth" key in the system
11+
And an instance of "EntityIntegrationConfigs" API
12+
13+
@generated @skip @team:DataDog/idp
14+
Scenario: Create or update entity integration config returns "Bad Request" response
15+
Given operation "UpdateEntityIntegrationConfig" enabled
16+
And new "UpdateEntityIntegrationConfig" request
17+
And request contains "integration_id" parameter from "REPLACE.ME"
18+
And body with value {"data": {"attributes": {"config": {"enabled_repos": [{"github_org_name": "myorg", "hostname": "github.com", "repo_name": "myrepo"}]}}, "type": "entity_integration_config_requests"}}
19+
When the request is sent
20+
Then the response status is 400 Bad Request
21+
22+
@generated @skip @team:DataDog/idp
23+
Scenario: Create or update entity integration config returns "OK" response
24+
Given operation "UpdateEntityIntegrationConfig" enabled
25+
And new "UpdateEntityIntegrationConfig" request
26+
And request contains "integration_id" parameter from "REPLACE.ME"
27+
And body with value {"data": {"attributes": {"config": {"enabled_repos": [{"github_org_name": "myorg", "hostname": "github.com", "repo_name": "myrepo"}]}}, "type": "entity_integration_config_requests"}}
28+
When the request is sent
29+
Then the response status is 200 OK
30+
31+
@generated @skip @team:DataDog/idp
32+
Scenario: Delete an entity integration configuration returns "Bad Request" response
33+
Given operation "DeleteEntityIntegrationConfig" enabled
34+
And new "DeleteEntityIntegrationConfig" request
35+
And request contains "integration_id" parameter from "REPLACE.ME"
36+
When the request is sent
37+
Then the response status is 400 Bad Request
38+
39+
@generated @skip @team:DataDog/idp
40+
Scenario: Delete an entity integration configuration returns "No Content" response
41+
Given operation "DeleteEntityIntegrationConfig" enabled
42+
And new "DeleteEntityIntegrationConfig" request
43+
And request contains "integration_id" parameter from "REPLACE.ME"
44+
When the request is sent
45+
Then the response status is 204 No Content
46+
47+
@generated @skip @team:DataDog/idp
48+
Scenario: Delete an entity integration configuration returns "Not Found" response
49+
Given operation "DeleteEntityIntegrationConfig" enabled
50+
And new "DeleteEntityIntegrationConfig" request
51+
And request contains "integration_id" parameter from "REPLACE.ME"
52+
When the request is sent
53+
Then the response status is 404 Not Found
54+
55+
@generated @skip @team:DataDog/idp
56+
Scenario: Get an entity integration configuration returns "Bad Request" response
57+
Given operation "GetEntityIntegrationConfig" enabled
58+
And new "GetEntityIntegrationConfig" request
59+
And request contains "integration_id" parameter from "REPLACE.ME"
60+
When the request is sent
61+
Then the response status is 400 Bad Request
62+
63+
@generated @skip @team:DataDog/idp
64+
Scenario: Get an entity integration configuration returns "Not Found" response
65+
Given operation "GetEntityIntegrationConfig" enabled
66+
And new "GetEntityIntegrationConfig" request
67+
And request contains "integration_id" parameter from "REPLACE.ME"
68+
When the request is sent
69+
Then the response status is 404 Not Found
70+
71+
@generated @skip @team:DataDog/idp
72+
Scenario: Get an entity integration configuration returns "OK" response
73+
Given operation "GetEntityIntegrationConfig" enabled
74+
And new "GetEntityIntegrationConfig" request
75+
And request contains "integration_id" parameter from "REPLACE.ME"
76+
When the request is sent
77+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,6 +2520,24 @@
25202520
"type": "unsafe"
25212521
}
25222522
},
2523+
"DeleteEntityIntegrationConfig": {
2524+
"tag": "Entity Integration Configs",
2525+
"undo": {
2526+
"type": "idempotent"
2527+
}
2528+
},
2529+
"GetEntityIntegrationConfig": {
2530+
"tag": "Entity Integration Configs",
2531+
"undo": {
2532+
"type": "safe"
2533+
}
2534+
},
2535+
"UpdateEntityIntegrationConfig": {
2536+
"tag": "Entity Integration Configs",
2537+
"undo": {
2538+
"type": "idempotent"
2539+
}
2540+
},
25232541
"ListIncidents": {
25242542
"tag": "Incidents",
25252543
"undo": {

packages/datadog-api-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ apiInstance
388388
| Domain Allowlist | @datadog/datadog-api-client-domain-allowlist | [README.md](../../services/domain-allowlist/README.md) |
389389
| DORA Metrics | @datadog/datadog-api-client-dora-metrics | [README.md](../../services/dora-metrics/README.md) |
390390
| Downtimes | @datadog/datadog-api-client-downtimes | [README.md](../../services/downtimes/README.md) |
391+
| Entity Integration Configs | @datadog/datadog-api-client-entity-integration-configs | [README.md](../../services/entity-integration-configs/README.md) |
391392
| Entity Risk Scores | @datadog/datadog-api-client-entity-risk-scores | [README.md](../../services/entity-risk-scores/README.md) |
392393
| Error Tracking | @datadog/datadog-api-client-error-tracking | [README.md](../../services/error-tracking/README.md) |
393394
| Events | @datadog/datadog-api-client-events | [README.md](../../services/events/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8240,6 +8240,31 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
82408240
},
82418241
operationResponseType: "HamrOrgConnectionResponse",
82428242
},
8243+
"EntityIntegrationConfigsApi.V2.GetEntityIntegrationConfig": {
8244+
integrationId: {
8245+
type: "string",
8246+
format: "",
8247+
},
8248+
operationResponseType: "EntityIntegrationConfigResponse",
8249+
},
8250+
"EntityIntegrationConfigsApi.V2.UpdateEntityIntegrationConfig": {
8251+
integrationId: {
8252+
type: "string",
8253+
format: "",
8254+
},
8255+
body: {
8256+
type: "EntityIntegrationConfigRequest",
8257+
format: "",
8258+
},
8259+
operationResponseType: "EntityIntegrationConfigResponse",
8260+
},
8261+
"EntityIntegrationConfigsApi.V2.DeleteEntityIntegrationConfig": {
8262+
integrationId: {
8263+
type: "string",
8264+
format: "",
8265+
},
8266+
operationResponseType: "{}",
8267+
},
82438268
"IncidentsApi.V2.ListIncidents": {
82448269
include: {
82458270
type: "Array<IncidentRelatedObject>",

services/cloud_network_monitoring/src/v2/models/SingleAggregatedConnectionResponseDataAttributes.ts

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,14 @@ export class SingleAggregatedConnectionResponseDataAttributes {
3232
* The number of TCP connections in a closed state. Measured in connections per second from the client.
3333
*/
3434
"tcpClosedConnections"?: number;
35-
/**
36-
* The number of TCP segments acknowledged with the ECN Congestion Experienced (CE) mark, indicating that an upstream router marked packets as experiencing congestion.
37-
*/
38-
"tcpDeliveredCe"?: number;
3935
/**
4036
* The number of TCP connections in an established state. Measured in connections per second from the client.
4137
*/
4238
"tcpEstablishedConnections"?: number;
43-
/**
44-
* The number of TCP zero-window probes sent. These probes are sent when the receiver advertises a zero receive window, indicating it cannot accept more data.
45-
*/
46-
"tcpProbe0Count"?: number;
47-
/**
48-
* The number of TCP packets received out of order. This indicates network-level packet reordering, which can degrade TCP performance by triggering spurious retransmissions and reducing throughput.
49-
*/
50-
"tcpRcvOooPack"?: number;
51-
/**
52-
* The number of TCP fast recovery events. Fast recovery retransmits lost segments detected through duplicate ACKs or selective acknowledgment (SACK) without waiting for a retransmission timeout.
53-
*/
54-
"tcpRecoveryCount"?: number;
5539
/**
5640
* The number of TCP connections that were refused by the server. Typically this indicates an attempt to connect to an IP/port that is not receiving connections, or a firewall/security misconfiguration.
5741
*/
5842
"tcpRefusals"?: number;
59-
/**
60-
* The number of times reordering of sent packets was detected. Reordering detection adjusts the duplicate ACK threshold, preventing spurious retransmissions caused by out-of-order delivery.
61-
*/
62-
"tcpReordSeen"?: number;
6343
/**
6444
* The number of TCP connections that were reset by the server.
6545
*/
@@ -68,10 +48,6 @@ export class SingleAggregatedConnectionResponseDataAttributes {
6848
* TCP Retransmits represent detected failures that are retransmitted to ensure delivery. Measured in count of retransmits from the client.
6949
*/
7050
"tcpRetransmits"?: number;
71-
/**
72-
* The number of TCP retransmission timeouts (RTOs). An RTO occurs when an ACK is not received within the estimated round-trip time, forcing the sender to retransmit and halve its congestion window.
73-
*/
74-
"tcpRtoCount"?: number;
7551
/**
7652
* The number of TCP connections that timed out from the perspective of the operating system. This can indicate general connectivity and latency issues.
7753
*/
@@ -125,41 +101,16 @@ export class SingleAggregatedConnectionResponseDataAttributes {
125101
type: "number",
126102
format: "int64",
127103
},
128-
tcpDeliveredCe: {
129-
baseName: "tcp_delivered_ce",
130-
type: "number",
131-
format: "int64",
132-
},
133104
tcpEstablishedConnections: {
134105
baseName: "tcp_established_connections",
135106
type: "number",
136107
format: "int64",
137108
},
138-
tcpProbe0Count: {
139-
baseName: "tcp_probe0_count",
140-
type: "number",
141-
format: "int64",
142-
},
143-
tcpRcvOooPack: {
144-
baseName: "tcp_rcv_ooo_pack",
145-
type: "number",
146-
format: "int64",
147-
},
148-
tcpRecoveryCount: {
149-
baseName: "tcp_recovery_count",
150-
type: "number",
151-
format: "int64",
152-
},
153109
tcpRefusals: {
154110
baseName: "tcp_refusals",
155111
type: "number",
156112
format: "int64",
157113
},
158-
tcpReordSeen: {
159-
baseName: "tcp_reord_seen",
160-
type: "number",
161-
format: "int64",
162-
},
163114
tcpResets: {
164115
baseName: "tcp_resets",
165116
type: "number",
@@ -170,11 +121,6 @@ export class SingleAggregatedConnectionResponseDataAttributes {
170121
type: "number",
171122
format: "int64",
172123
},
173-
tcpRtoCount: {
174-
baseName: "tcp_rto_count",
175-
type: "number",
176-
format: "int64",
177-
},
178124
tcpTimeouts: {
179125
baseName: "tcp_timeouts",
180126
type: "number",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# @datadog/datadog-api-client-entity-integration-configs
2+
3+
## Description
4+
5+
Manage per-integration configurations for the Internal Developer Portal (IDP). These configurations control which external resources (for example, GitHub repositories, Jira projects, or PagerDuty services) are synced as entities into the Software Catalog.
6+
7+
## Navigation
8+
9+
- [Installation](#installation)
10+
- [Getting Started](#getting-started)
11+
12+
## Installation
13+
14+
```sh
15+
# NPM
16+
npm install @datadog/datadog-api-client-entity-integration-configs
17+
# Yarn
18+
yarn add @datadog/datadog-api-client-entity-integration-configs
19+
```
20+
21+
## Getting Started
22+
```ts
23+
import { createConfiguration } from "@datadog/datadog-api-client";
24+
import { EntityIntegrationConfigsApiV2 } from "@datadog/datadog-api-client-entity-integration-configs";
25+
import { v2 } from "@datadog/datadog-api-client-entity-integration-configs";
26+
27+
const configuration = createConfiguration();
28+
// Enable unstable operations
29+
const configurationOpts = {
30+
unstableOperations: {
31+
"EntityIntegrationConfigsApi.v2.getEntityIntegrationConfig": true
32+
}
33+
}
34+
35+
const configuration = createConfiguration(configurationOpts);
36+
const apiInstance = new EntityIntegrationConfigsApiV2(configuration);
37+
const params = {/* parameters */};
38+
39+
apiInstance.getEntityIntegrationConfig(params).then((data) => {
40+
console.log("API called successfully. Returned data: " + JSON.stringify(data));
41+
}).catch((error) => {
42+
console.error("Error calling API: " + error);
43+
});
44+
```
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@datadog/datadog-api-client-entity-integration-configs",
3+
"description": "",
4+
"author": "",
5+
"keywords": [
6+
"api",
7+
"fetch",
8+
"typescript"
9+
],
10+
"license": "Apache-2.0",
11+
"licenses": [
12+
{
13+
"type": "Apache-2.0",
14+
"url": "http://www.apache.org/licenses/LICENSE-2.0"
15+
}
16+
],
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/DataDog/datadog-api-client-typescript.git",
20+
"directory": "services/entity-integration-configs"
21+
},
22+
"files": [
23+
"dist/**/*"
24+
],
25+
"main": "./dist/index.js",
26+
"typings": "./dist/index.d.ts",
27+
"scripts": {
28+
"prepack": "yarn workspace @datadog/datadog-api-client build && yarn build",
29+
"build": "yarn generate-version-files && tsc",
30+
"generate-version-files": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > src/version.ts"
31+
},
32+
"dependencies": {
33+
"@datadog/datadog-api-client": "^2.0.0-beta.2"
34+
},
35+
"devDependencies": {
36+
"typescript": "5.8.3"
37+
},
38+
"engines": {
39+
"node": ">=18.0.0"
40+
},
41+
"version": "0.0.1",
42+
"packageManager": "yarn@4.9.1"
43+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * as v2 from "./v2";
2+
3+
export { EntityIntegrationConfigsApi as EntityIntegrationConfigsApiV2 } from "./v2/EntityIntegrationConfigsApi";

0 commit comments

Comments
 (0)