Skip to content

Commit 11f6eb5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 845d9e9 of spec repo
1 parent 3946ec5 commit 11f6eb5

21 files changed

+783
-33
lines changed

examples/v2/teams/CreateTeamConnections.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
public class Example {
2121
public static void main(String[] args) {
2222
ApiClient defaultClient = ApiClient.getDefaultApiClient();
23-
defaultClient.setUnstableOperationEnabled("v2.createTeamConnections", true);
2423
TeamsApi apiInstance = new TeamsApi(defaultClient);
2524

2625
// there is a valid "dd_team" in the system

examples/v2/teams/DeleteTeamConnections.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ public static void main(String[] args) {
1313
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1414
TeamsApi apiInstance = new TeamsApi(defaultClient);
1515

16+
// there is a valid "team_connection" in the system
17+
String TEAM_CONNECTION_ID = System.getenv("TEAM_CONNECTION_ID");
18+
1619
TeamConnectionDeleteRequest body =
1720
new TeamConnectionDeleteRequest()
1821
.data(
1922
Collections.singletonList(
2023
new TeamConnectionDeleteRequestDataItem()
21-
.id("12345678-1234-5678-9abc-123456789012")
24+
.id(TEAM_CONNECTION_ID)
2225
.type(TeamConnectionType.TEAM_CONNECTION)));
2326

2427
try {

examples/v2/teams/ListTeamConnections.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v2.api.TeamsApi;
6+
import com.datadog.api.client.v2.api.TeamsApi.ListTeamConnectionsOptionalParameters;
67
import com.datadog.api.client.v2.model.TeamConnectionsResponse;
78

89
public class Example {
@@ -11,7 +12,9 @@ public static void main(String[] args) {
1112
TeamsApi apiInstance = new TeamsApi(defaultClient);
1213

1314
try {
14-
TeamConnectionsResponse result = apiInstance.listTeamConnections();
15+
TeamConnectionsResponse result =
16+
apiInstance.listTeamConnections(
17+
new ListTeamConnectionsOptionalParameters().pageSize(10L));
1518
System.out.println(result);
1619
} catch (ApiException e) {
1720
System.err.println("Exception when calling TeamsApi#listTeamConnections");

examples/v2/teams/ListTeamConnections_1473516764.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
public class Example {
1111
public static void main(String[] args) {
1212
ApiClient defaultClient = ApiClient.getDefaultApiClient();
13-
defaultClient.setUnstableOperationEnabled("v2.listTeamConnections", true);
1413
TeamsApi apiInstance = new TeamsApi(defaultClient);
1514

1615
try {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-03-26T20:52:36.814Z
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"httpRequest": {
4+
"body": {
5+
"type": "JSON",
6+
"json": "{\"data\":[]}"
7+
},
8+
"headers": {},
9+
"method": "POST",
10+
"path": "/api/v2/team/connections",
11+
"keepAlive": false,
12+
"secure": true
13+
},
14+
"httpResponse": {
15+
"body": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"attribute \\\"data\\\" at least one team connection must be provided\"}]}",
16+
"headers": {
17+
"Content-Type": [
18+
"application/vnd.api+json"
19+
]
20+
},
21+
"statusCode": 400,
22+
"reasonPhrase": "Bad Request"
23+
},
24+
"times": {
25+
"remainingTimes": 1
26+
},
27+
"timeToLive": {
28+
"unlimited": true
29+
},
30+
"id": "c6a73f23-f191-5036-4cfc-d6f24bba772e"
31+
}
32+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-03-26T09:48:11.713Z
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
[
2+
{
3+
"httpRequest": {
4+
"body": {
5+
"type": "JSON",
6+
"json": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-162904472b239d4d\",\"name\":\"test-name-162904472b239d4d\"},\"type\":\"team\"}}"
7+
},
8+
"headers": {},
9+
"method": "POST",
10+
"path": "/api/v2/team",
11+
"keepAlive": false,
12+
"secure": true
13+
},
14+
"httpResponse": {
15+
"body": "{\"data\":{\"id\":\"fb3c8c73-1c83-4913-a98b-af55466d7078\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":0,\"created_at\":\"2026-03-26T09:48:12.201036+00:00\",\"description\":null,\"handle\":\"test-handle-162904472b239d4d\",\"hidden_modules\":null,\"is_managed\":false,\"link_count\":0,\"modified_at\":\"2026-03-26T09:48:12.201036+00:00\",\"name\":\"test-name-162904472b239d4d\",\"summary\":null,\"user_count\":0,\"visible_modules\":null},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/fb3c8c73-1c83-4913-a98b-af55466d7078/links\"}},\"user_team_permissions\":{\"data\":null,\"links\":{\"related\":\"/api/v2/team/fb3c8c73-1c83-4913-a98b-af55466d7078/permission-settings\"}}}}}",
16+
"headers": {
17+
"Content-Type": [
18+
"application/vnd.api+json"
19+
]
20+
},
21+
"statusCode": 201,
22+
"reasonPhrase": "Created"
23+
},
24+
"times": {
25+
"remainingTimes": 1
26+
},
27+
"timeToLive": {
28+
"unlimited": true
29+
},
30+
"id": "585ef5af-7d99-fb41-6566-ffe641d690f2"
31+
},
32+
{
33+
"httpRequest": {
34+
"body": {
35+
"type": "JSON",
36+
"json": "{\"data\":[{\"attributes\":{\"managed_by\":\"datadog\",\"source\":\"github\"},\"relationships\":{\"connected_team\":{\"data\":{\"id\":\"@MyGitHubAccount/my-team-name\",\"type\":\"github_team\"}},\"team\":{\"data\":{\"id\":\"fb3c8c73-1c83-4913-a98b-af55466d7078\",\"type\":\"team\"}}},\"type\":\"team_connection\"}]}"
37+
},
38+
"headers": {},
39+
"method": "POST",
40+
"path": "/api/v2/team/connections",
41+
"keepAlive": false,
42+
"secure": true
43+
},
44+
"httpResponse": {
45+
"body": "{\"data\":[{\"id\":\"e796db96-28f8-11f1-bf29-da7ad0900002\",\"type\":\"team_connection\",\"attributes\":{\"managed_by\":\"datadog\",\"source\":\"github\"},\"relationships\":{\"connected_team\":{\"data\":{\"id\":\"@MyGitHubAccount/my-team-name\",\"type\":\"github_team\"}},\"team\":{\"data\":{\"id\":\"fb3c8c73-1c83-4913-a98b-af55466d7078\",\"type\":\"team\"}}}}]}",
46+
"headers": {
47+
"Content-Type": [
48+
"application/vnd.api+json"
49+
]
50+
},
51+
"statusCode": 201,
52+
"reasonPhrase": "Created"
53+
},
54+
"times": {
55+
"remainingTimes": 1
56+
},
57+
"timeToLive": {
58+
"unlimited": true
59+
},
60+
"id": "13c10d34-c320-2f37-a63e-bb0085dd4fdd"
61+
},
62+
{
63+
"httpRequest": {
64+
"body": {
65+
"type": "JSON",
66+
"json": "{\"data\":[{\"attributes\":{\"managed_by\":\"datadog\",\"source\":\"github\"},\"relationships\":{\"connected_team\":{\"data\":{\"id\":\"@MyGitHubAccount/my-team-name\",\"type\":\"github_team\"}},\"team\":{\"data\":{\"id\":\"fb3c8c73-1c83-4913-a98b-af55466d7078\",\"type\":\"team\"}}},\"type\":\"team_connection\"}]}"
67+
},
68+
"headers": {},
69+
"method": "POST",
70+
"path": "/api/v2/team/connections",
71+
"keepAlive": false,
72+
"secure": true
73+
},
74+
"httpResponse": {
75+
"body": "{\"errors\":[{\"status\":\"409\",\"title\":\"Conflict\",\"detail\":\"failed to add team connections: one or more team attributes already exist\"}]}",
76+
"headers": {
77+
"Content-Type": [
78+
"application/vnd.api+json"
79+
]
80+
},
81+
"statusCode": 409,
82+
"reasonPhrase": "Conflict"
83+
},
84+
"times": {
85+
"remainingTimes": 1
86+
},
87+
"timeToLive": {
88+
"unlimited": true
89+
},
90+
"id": "13c10d34-c320-2f37-a63e-bb0085dd4fde"
91+
},
92+
{
93+
"httpRequest": {
94+
"body": {
95+
"type": "JSON",
96+
"json": "{\"data\":[{\"id\":\"e796db96-28f8-11f1-bf29-da7ad0900002\",\"type\":\"team_connection\"}]}"
97+
},
98+
"headers": {},
99+
"method": "DELETE",
100+
"path": "/api/v2/team/connections",
101+
"keepAlive": false,
102+
"secure": true
103+
},
104+
"httpResponse": {
105+
"headers": {},
106+
"statusCode": 204,
107+
"reasonPhrase": "No Content"
108+
},
109+
"times": {
110+
"remainingTimes": 1
111+
},
112+
"timeToLive": {
113+
"unlimited": true
114+
},
115+
"id": "5477d2b3-06d0-36cf-583c-1bfd8a8b9131"
116+
},
117+
{
118+
"httpRequest": {
119+
"headers": {},
120+
"method": "DELETE",
121+
"path": "/api/v2/team/fb3c8c73-1c83-4913-a98b-af55466d7078",
122+
"keepAlive": false,
123+
"secure": true
124+
},
125+
"httpResponse": {
126+
"headers": {},
127+
"statusCode": 204,
128+
"reasonPhrase": "No Content"
129+
},
130+
"times": {
131+
"remainingTimes": 1
132+
},
133+
"timeToLive": {
134+
"unlimited": true
135+
},
136+
"id": "11eab709-a0c7-644f-732d-4b7004a3719c"
137+
}
138+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-03-26T09:47:39.673Z
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
[
2+
{
3+
"httpRequest": {
4+
"body": {
5+
"type": "JSON",
6+
"json": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-16b45dcfc0403d06\",\"name\":\"test-name-16b45dcfc0403d06\"},\"type\":\"team\"}}"
7+
},
8+
"headers": {},
9+
"method": "POST",
10+
"path": "/api/v2/team",
11+
"keepAlive": false,
12+
"secure": true
13+
},
14+
"httpResponse": {
15+
"body": "{\"data\":{\"id\":\"bbac929e-cf1d-45b2-9e47-d5d08dc6f40a\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":2,\"created_at\":\"2026-03-26T09:47:40.120969+00:00\",\"description\":null,\"handle\":\"test-handle-16b45dcfc0403d06\",\"hidden_modules\":null,\"is_managed\":false,\"link_count\":0,\"modified_at\":\"2026-03-26T09:47:40.120969+00:00\",\"name\":\"test-name-16b45dcfc0403d06\",\"summary\":null,\"user_count\":0,\"visible_modules\":null},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/bbac929e-cf1d-45b2-9e47-d5d08dc6f40a/links\"}},\"user_team_permissions\":{\"data\":null,\"links\":{\"related\":\"/api/v2/team/bbac929e-cf1d-45b2-9e47-d5d08dc6f40a/permission-settings\"}}}}}",
16+
"headers": {
17+
"Content-Type": [
18+
"application/vnd.api+json"
19+
]
20+
},
21+
"statusCode": 201,
22+
"reasonPhrase": "Created"
23+
},
24+
"times": {
25+
"remainingTimes": 1
26+
},
27+
"timeToLive": {
28+
"unlimited": true
29+
},
30+
"id": "80ed36cf-35c3-e63c-a07a-d70e00549377"
31+
},
32+
{
33+
"httpRequest": {
34+
"body": {
35+
"type": "JSON",
36+
"json": "{\"data\":[{\"attributes\":{\"managed_by\":\"datadog\",\"source\":\"github\"},\"relationships\":{\"connected_team\":{\"data\":{\"id\":\"@MyGitHubAccount/my-team-name\",\"type\":\"github_team\"}},\"team\":{\"data\":{\"id\":\"bbac929e-cf1d-45b2-9e47-d5d08dc6f40a\",\"type\":\"team\"}}},\"type\":\"team_connection\"}]}"
37+
},
38+
"headers": {},
39+
"method": "POST",
40+
"path": "/api/v2/team/connections",
41+
"keepAlive": false,
42+
"secure": true
43+
},
44+
"httpResponse": {
45+
"body": "{\"data\":[{\"id\":\"d479a64c-28f8-11f1-aaf1-da7ad0900002\",\"type\":\"team_connection\",\"attributes\":{\"managed_by\":\"datadog\",\"source\":\"github\"},\"relationships\":{\"connected_team\":{\"data\":{\"id\":\"@MyGitHubAccount/my-team-name\",\"type\":\"github_team\"}},\"team\":{\"data\":{\"id\":\"bbac929e-cf1d-45b2-9e47-d5d08dc6f40a\",\"type\":\"team\"}}}}]}",
46+
"headers": {
47+
"Content-Type": [
48+
"application/vnd.api+json"
49+
]
50+
},
51+
"statusCode": 201,
52+
"reasonPhrase": "Created"
53+
},
54+
"times": {
55+
"remainingTimes": 1
56+
},
57+
"timeToLive": {
58+
"unlimited": true
59+
},
60+
"id": "d149ccf0-36e1-6765-d3f6-a4d92c0ceb28"
61+
},
62+
{
63+
"httpRequest": {
64+
"body": {
65+
"type": "JSON",
66+
"json": "{\"data\":[{\"id\":\"d479a64c-28f8-11f1-aaf1-da7ad0900002\",\"type\":\"team_connection\"}]}"
67+
},
68+
"headers": {},
69+
"method": "DELETE",
70+
"path": "/api/v2/team/connections",
71+
"keepAlive": false,
72+
"secure": true
73+
},
74+
"httpResponse": {
75+
"headers": {},
76+
"statusCode": 204,
77+
"reasonPhrase": "No Content"
78+
},
79+
"times": {
80+
"remainingTimes": 1
81+
},
82+
"timeToLive": {
83+
"unlimited": true
84+
},
85+
"id": "73570ef4-2365-d658-a242-b641fee76955"
86+
},
87+
{
88+
"httpRequest": {
89+
"headers": {},
90+
"method": "DELETE",
91+
"path": "/api/v2/team/bbac929e-cf1d-45b2-9e47-d5d08dc6f40a",
92+
"keepAlive": false,
93+
"secure": true
94+
},
95+
"httpResponse": {
96+
"headers": {},
97+
"statusCode": 204,
98+
"reasonPhrase": "No Content"
99+
},
100+
"times": {
101+
"remainingTimes": 1
102+
},
103+
"timeToLive": {
104+
"unlimited": true
105+
},
106+
"id": "52750e8f-fae3-3f32-0137-d8574108db93"
107+
}
108+
]

0 commit comments

Comments
 (0)