Skip to content

Commit 1484b4f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7dfeb73 of spec repo
1 parent f5e1df3 commit 1484b4f

44 files changed

Lines changed: 3854 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 701 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
@endpoint(rum-teams-ownership) @endpoint(rum-teams-ownership-v2)
2+
Feature: Rum Teams Ownership
3+
Manage [teams ownership](https://docs.datadoghq.com/real_user_monitoring/p
4+
latform/ownership/) mappings between RUM views and the teams that own
5+
them.
6+
7+
Background:
8+
Given a valid "apiKeyAuth" key in the system
9+
And a valid "appKeyAuth" key in the system
10+
And an instance of "RumTeamsOwnership" API
11+
12+
@team:DataDog/rum-backend
13+
Scenario: Bulk create and remove teams ownership mappings returns "Bad Request" response
14+
Given new "CreateTeamsOwnershipMappingsBatch" request
15+
And body with value {"atomic:operations":[{"op":"add","data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout","service":"web-checkout","application_id":"invalid-uuid","match_type":"exact"}}}]}
16+
When the request is sent
17+
Then the response status is 400 Bad Request
18+
19+
@generated @skip @team:DataDog/rum-backend
20+
Scenario: Bulk create and remove teams ownership mappings returns "Bad Request. One or more operations failed validation, so none of the operations were applied." response
21+
Given operation "CreateTeamsOwnershipMappingsBatch" enabled
22+
And new "CreateTeamsOwnershipMappingsBatch" request
23+
And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "456", "type": "teams_ownership_mappings"}}]}
24+
When the request is sent
25+
Then the response status is 400 Bad Request. One or more operations failed validation, so none of the operations were applied.
26+
27+
@team:DataDog/rum-backend
28+
Scenario: Bulk create and remove teams ownership mappings returns "OK" response
29+
Given new "CreateTeamsOwnershipMappingsBatch" request
30+
And body with value {"atomic:operations":[{"op":"add","data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout","service":"web-checkout","application_id":"11111111-2222-3333-4444-555555555555","match_type":"exact"}}},{"op":"remove","ref":{"type":"teams_ownership_mappings","id":"456"}}]}
31+
When the request is sent
32+
Then the response status is 200 OK
33+
And the response "atomic:results[0].data.type" is equal to "teams_ownership_mappings"
34+
And the response "atomic:results[0].data.attributes.team_handle" is equal to "team-rum"
35+
And the response "atomic:results[0].data.attributes.match_type" is equal to "exact"
36+
37+
@generated @skip @team:DataDog/rum-backend
38+
Scenario: Create a teams ownership mapping returns "Bad Request" response
39+
Given operation "CreateTeamsOwnershipMapping" enabled
40+
And new "CreateTeamsOwnershipMapping" request
41+
And body with value {"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}}
42+
When the request is sent
43+
Then the response status is 400 Bad Request
44+
45+
@generated @skip @team:DataDog/rum-backend
46+
Scenario: Create a teams ownership mapping returns "Created" response
47+
Given operation "CreateTeamsOwnershipMapping" enabled
48+
And new "CreateTeamsOwnershipMapping" request
49+
And body with value {"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}}
50+
When the request is sent
51+
Then the response status is 201 Created
52+
53+
@team:DataDog/rum-backend
54+
Scenario: Create teams ownership mapping returns "Bad Request" response
55+
Given new "CreateTeamsOwnershipMapping" request
56+
And body with value {"data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout","service":"web-checkout","application_id":"invalid-uuid","match_type":"exact"}}}
57+
When the request is sent
58+
Then the response status is 400 Bad Request
59+
60+
@team:DataDog/rum-backend
61+
Scenario: Create teams ownership mapping returns "Created" response
62+
Given new "CreateTeamsOwnershipMapping" request
63+
And body with value {"data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout","service":"web-checkout","application_id":"11111111-2222-3333-4444-555555555555","match_type":"exact"}}}
64+
When the request is sent
65+
Then the response status is 201 Created
66+
And the response "data.type" is equal to "teams_ownership_mappings"
67+
And the response "data.attributes.team_handle" is equal to "team-rum"
68+
And the response "data.attributes.view_name" is equal to "/checkout"
69+
And the response "data.attributes.service" is equal to "web-checkout"
70+
And the response "data.attributes.application_id" is equal to "11111111-2222-3333-4444-555555555555"
71+
And the response "data.attributes.match_type" is equal to "exact"
72+
73+
@team:DataDog/rum-backend
74+
Scenario: Delete a teams ownership mapping returns "No Content" response
75+
Given new "DeleteTeamsOwnershipMapping" request
76+
And request contains "id" parameter with value "123"
77+
When the request is sent
78+
Then the response status is 204 No Content
79+
80+
@team:DataDog/rum-backend
81+
Scenario: Delete a teams ownership mapping returns "Not Found" response
82+
Given new "DeleteTeamsOwnershipMapping" request
83+
And request contains "id" parameter with value "{{ unique }}"
84+
When the request is sent
85+
Then the response status is 404 Not Found
86+
87+
@team:DataDog/rum-backend
88+
Scenario: Get a teams ownership mapping returns "Not Found" response
89+
Given new "GetTeamsOwnershipMapping" request
90+
And request contains "id" parameter with value "{{ unique }}"
91+
When the request is sent
92+
Then the response status is 404 Not Found
93+
94+
@team:DataDog/rum-backend
95+
Scenario: Get a teams ownership mapping returns "OK" response
96+
Given new "GetTeamsOwnershipMapping" request
97+
And request contains "id" parameter with value "123"
98+
When the request is sent
99+
Then the response status is 200 OK
100+
And the response "data.id" is equal to "123"
101+
And the response "data.type" is equal to "teams_ownership_mappings"
102+
And the response "data.attributes.team_handle" is equal to "team-rum"
103+
And the response "data.attributes.view_name" is equal to "/checkout"
104+
And the response "data.attributes.match_type" is equal to "exact"
105+
106+
@team:DataDog/rum-backend
107+
Scenario: List teams ownership mappings returns "OK" response
108+
Given new "ListTeamsOwnershipMappings" request
109+
When the request is sent
110+
Then the response status is 200 OK
111+
And the response "data" has length 1
112+
And the response "data[0].type" is equal to "teams_ownership_mappings"
113+
And the response "data[0].attributes.team_handle" is equal to "team-rum"
114+
And the response "data[0].attributes.view_name" is equal to "/checkout"
115+
And the response "data[0].attributes.service" is equal to "web-checkout"
116+
And the response "data[0].attributes.application_id" is equal to "11111111-2222-3333-4444-555555555555"
117+
And the response "data[0].attributes.match_type" is equal to "exact"
118+
119+
@team:DataDog/rum-backend
120+
Scenario: List teams ownership rules returns "OK" response
121+
Given new "ListTeamsOwnershipRules" request
122+
When the request is sent
123+
Then the response status is 200 OK
124+
And the response "data" has length 1
125+
And the response "data[0].type" is equal to "teams_ownership_grouped_mappings"
126+
And the response "data[0].attributes.view_name" is equal to "/checkout"
127+
And the response "data[0].attributes.match_type" is equal to "exact"

features/v2/undo.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7057,6 +7057,51 @@
70577057
"type": "idempotent"
70587058
}
70597059
},
7060+
"ListTeamsOwnershipMappings": {
7061+
"tag": "Rum Teams Ownership",
7062+
"undo": {
7063+
"type": "safe"
7064+
}
7065+
},
7066+
"CreateTeamsOwnershipMapping": {
7067+
"tag": "Rum Teams Ownership",
7068+
"undo": {
7069+
"operationId": "DeleteTeamsOwnershipMapping",
7070+
"parameters": [
7071+
{
7072+
"name": "id",
7073+
"source": "data.id"
7074+
}
7075+
],
7076+
"type": "unsafe"
7077+
}
7078+
},
7079+
"CreateTeamsOwnershipMappingsBatch": {
7080+
"tag": "Rum Teams Ownership",
7081+
"undo": {
7082+
"operationId": "CreateTeamsOwnershipMappingsBatch",
7083+
"parameters": [],
7084+
"type": "unsafe"
7085+
}
7086+
},
7087+
"DeleteTeamsOwnershipMapping": {
7088+
"tag": "Rum Teams Ownership",
7089+
"undo": {
7090+
"type": "idempotent"
7091+
}
7092+
},
7093+
"GetTeamsOwnershipMapping": {
7094+
"tag": "Rum Teams Ownership",
7095+
"undo": {
7096+
"type": "safe"
7097+
}
7098+
},
7099+
"ListTeamsOwnershipRules": {
7100+
"tag": "Rum Teams Ownership",
7101+
"undo": {
7102+
"type": "safe"
7103+
}
7104+
},
70607105
"ListRUMEvents": {
70617106
"tag": "RUM",
70627107
"undo": {

packages/datadog-api-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ apiInstance
464464
| Rum Replay Sessions | @datadog/datadog-api-client-rum-replay-sessions | [README.md](../../services/rum-replay-sessions/README.md) |
465465
| Rum Replay Viewership | @datadog/datadog-api-client-rum-replay-viewership | [README.md](../../services/rum-replay-viewership/README.md) |
466466
| Rum Retention Filters | @datadog/datadog-api-client-rum-retention-filters | [README.md](../../services/rum-retention-filters/README.md) |
467+
| Rum Teams Ownership | @datadog/datadog-api-client-rum-teams-ownership | [README.md](../../services/rum-teams-ownership/README.md) |
467468
| Salesforce Integration | @datadog/datadog-api-client-salesforce-integration | [README.md](../../services/salesforce-integration/README.md) |
468469
| Scorecards | @datadog/datadog-api-client-scorecards | [README.md](../../services/scorecards/README.md) |
469470
| Seats | @datadog/datadog-api-client-seats | [README.md](../../services/seats/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15341,6 +15341,72 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
1534115341
},
1534215342
operationResponseType: "RumMetricResponse",
1534315343
},
15344+
"RumTeamsOwnershipApi.V2.ListTeamsOwnershipMappings": {
15345+
filterViewName: {
15346+
type: "Array<string>",
15347+
format: "",
15348+
},
15349+
filterTeamHandle: {
15350+
type: "Array<string>",
15351+
format: "",
15352+
},
15353+
filterApplicationId: {
15354+
type: "Array<string>",
15355+
format: "",
15356+
},
15357+
filterService: {
15358+
type: "Array<string>",
15359+
format: "",
15360+
},
15361+
operationResponseType: "TeamsOwnershipMappingsResponse",
15362+
},
15363+
"RumTeamsOwnershipApi.V2.CreateTeamsOwnershipMapping": {
15364+
body: {
15365+
type: "TeamsOwnershipMappingCreateRequest",
15366+
format: "",
15367+
},
15368+
operationResponseType: "TeamsOwnershipMappingResponse",
15369+
},
15370+
"RumTeamsOwnershipApi.V2.CreateTeamsOwnershipMappingsBatch": {
15371+
body: {
15372+
type: "TeamsOwnershipMappingBatchRequest",
15373+
format: "",
15374+
},
15375+
operationResponseType: "TeamsOwnershipMappingBatchResponse",
15376+
},
15377+
"RumTeamsOwnershipApi.V2.GetTeamsOwnershipMapping": {
15378+
id: {
15379+
type: "string",
15380+
format: "",
15381+
},
15382+
operationResponseType: "TeamsOwnershipMappingResponse",
15383+
},
15384+
"RumTeamsOwnershipApi.V2.DeleteTeamsOwnershipMapping": {
15385+
id: {
15386+
type: "string",
15387+
format: "",
15388+
},
15389+
operationResponseType: "{}",
15390+
},
15391+
"RumTeamsOwnershipApi.V2.ListTeamsOwnershipRules": {
15392+
filterViewName: {
15393+
type: "Array<string>",
15394+
format: "",
15395+
},
15396+
filterTeamHandle: {
15397+
type: "Array<string>",
15398+
format: "",
15399+
},
15400+
filterApplicationId: {
15401+
type: "Array<string>",
15402+
format: "",
15403+
},
15404+
filterService: {
15405+
type: "Array<string>",
15406+
format: "",
15407+
},
15408+
operationResponseType: "TeamsOwnershipRulesResponse",
15409+
},
1534415410
"RUMOperationsApi.V2.CreateRUMOperation": {
1534515411
body: {
1534615412
type: "RUMOperationCreateRequest",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# @datadog/datadog-api-client-rum-teams-ownership
2+
3+
## Description
4+
5+
Manage [teams ownership](https://docs.datadoghq.com/real_user_monitoring/platform/ownership/) mappings
6+
between RUM views and the teams that own them.
7+
8+
## Navigation
9+
10+
- [Installation](#installation)
11+
- [Getting Started](#getting-started)
12+
13+
## Installation
14+
15+
```sh
16+
# NPM
17+
npm install @datadog/datadog-api-client-rum-teams-ownership
18+
# Yarn
19+
yarn add @datadog/datadog-api-client-rum-teams-ownership
20+
```
21+
22+
## Getting Started
23+
```ts
24+
import { createConfiguration } from "@datadog/datadog-api-client";
25+
import { RumTeamsOwnershipApiV2 } from "@datadog/datadog-api-client-rum-teams-ownership";
26+
import { v2 } from "@datadog/datadog-api-client-rum-teams-ownership";
27+
28+
const configuration = createConfiguration();
29+
// Enable unstable operations
30+
const configurationOpts = {
31+
unstableOperations: {
32+
"RumTeamsOwnershipApi.v2.listTeamsOwnershipMappings": true
33+
}
34+
}
35+
36+
const configuration = createConfiguration(configurationOpts);
37+
const apiInstance = new RumTeamsOwnershipApiV2(configuration);
38+
const params = {/* parameters */};
39+
40+
apiInstance.listTeamsOwnershipMappings(params).then((data) => {
41+
console.log("API called successfully. Returned data: " + JSON.stringify(data));
42+
}).catch((error) => {
43+
console.error("Error calling API: " + error);
44+
});
45+
```
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-rum-teams-ownership",
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/rum-teams-ownership"
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 { RumTeamsOwnershipApi as RumTeamsOwnershipApiV2 } from "./v2/RumTeamsOwnershipApi";

0 commit comments

Comments
 (0)