Skip to content

Commit 4241ab9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e4f7f38 of spec repo
1 parent 09fe883 commit 4241ab9

File tree

456 files changed

+2784
-2015
lines changed

Some content is hidden

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

456 files changed

+2784
-2015
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1227 additions & 148 deletions
Large diffs are not rendered by default.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Sync teams returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.TeamsApi;
6+
import com.datadog.api.client.v2.model.TeamSyncAttributes;
7+
import com.datadog.api.client.v2.model.TeamSyncAttributesSource;
8+
import com.datadog.api.client.v2.model.TeamSyncAttributesType;
9+
import com.datadog.api.client.v2.model.TeamSyncBulkType;
10+
import com.datadog.api.client.v2.model.TeamSyncData;
11+
import com.datadog.api.client.v2.model.TeamSyncRequest;
12+
13+
public class Example {
14+
public static void main(String[] args) {
15+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
16+
TeamsApi apiInstance = new TeamsApi(defaultClient);
17+
18+
TeamSyncRequest body =
19+
new TeamSyncRequest()
20+
.data(
21+
new TeamSyncData()
22+
.attributes(
23+
new TeamSyncAttributes()
24+
.source(TeamSyncAttributesSource.GITHUB)
25+
.type(TeamSyncAttributesType.LINK))
26+
.type(TeamSyncBulkType.TEAM_SYNC_BULK));
27+
28+
try {
29+
apiInstance.syncTeams(body);
30+
} catch (ApiException e) {
31+
System.err.println("Exception when calling TeamsApi#syncTeams");
32+
System.err.println("Status code: " + e.getCode());
33+
System.err.println("Reason: " + e.getResponseBody());
34+
System.err.println("Response headers: " + e.getResponseHeaders());
35+
e.printStackTrace();
36+
}
37+
}
38+
}

src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ public CompletableFuture<ApiResponse<Void>> createCaseServiceNowTicketWithHttpIn
11941194
*
11951195
* <p>See {@link #createProjectWithHttpInfo}.
11961196
*
1197-
* @param body Project payload (required)
1197+
* @param body Project payload. (required)
11981198
* @return ProjectResponse
11991199
* @throws ApiException if fails to make API call
12001200
*/
@@ -1207,7 +1207,7 @@ public ProjectResponse createProject(ProjectCreateRequest body) throws ApiExcept
12071207
*
12081208
* <p>See {@link #createProjectWithHttpInfoAsync}.
12091209
*
1210-
* @param body Project payload (required)
1210+
* @param body Project payload. (required)
12111211
* @return CompletableFuture&lt;ProjectResponse&gt;
12121212
*/
12131213
public CompletableFuture<ProjectResponse> createProjectAsync(ProjectCreateRequest body) {
@@ -1221,7 +1221,7 @@ public CompletableFuture<ProjectResponse> createProjectAsync(ProjectCreateReques
12211221
/**
12221222
* Create a project.
12231223
*
1224-
* @param body Project payload (required)
1224+
* @param body Project payload. (required)
12251225
* @return ApiResponse&lt;ProjectResponse&gt;
12261226
* @throws ApiException if fails to make API call
12271227
* @http.response.details
@@ -1275,7 +1275,7 @@ public ApiResponse<ProjectResponse> createProjectWithHttpInfo(ProjectCreateReque
12751275
*
12761276
* <p>See {@link #createProjectWithHttpInfo}.
12771277
*
1278-
* @param body Project payload (required)
1278+
* @param body Project payload. (required)
12791279
* @return CompletableFuture&lt;ApiResponse&lt;ProjectResponse&gt;&gt;
12801280
*/
12811281
public CompletableFuture<ApiResponse<ProjectResponse>> createProjectWithHttpInfoAsync(
@@ -1818,7 +1818,7 @@ public CompletableFuture<ApiResponse<CaseResponse>> deleteCaseCustomAttributeWit
18181818
*
18191819
* <p>See {@link #deleteProjectWithHttpInfo}.
18201820
*
1821-
* @param projectId Project UUID (required)
1821+
* @param projectId Project UUID. (required)
18221822
* @throws ApiException if fails to make API call
18231823
*/
18241824
public void deleteProject(String projectId) throws ApiException {
@@ -1830,7 +1830,7 @@ public void deleteProject(String projectId) throws ApiException {
18301830
*
18311831
* <p>See {@link #deleteProjectWithHttpInfoAsync}.
18321832
*
1833-
* @param projectId Project UUID (required)
1833+
* @param projectId Project UUID. (required)
18341834
* @return CompletableFuture
18351835
*/
18361836
public CompletableFuture<Void> deleteProjectAsync(String projectId) {
@@ -1844,7 +1844,7 @@ public CompletableFuture<Void> deleteProjectAsync(String projectId) {
18441844
/**
18451845
* Remove a project using the project's <code>id</code>.
18461846
*
1847-
* @param projectId Project UUID (required)
1847+
* @param projectId Project UUID. (required)
18481848
* @return ApiResponse&lt;Void&gt;
18491849
* @throws ApiException if fails to make API call
18501850
* @http.response.details
@@ -1897,7 +1897,7 @@ public ApiResponse<Void> deleteProjectWithHttpInfo(String projectId) throws ApiE
18971897
*
18981898
* <p>See {@link #deleteProjectWithHttpInfo}.
18991899
*
1900-
* @param projectId Project UUID (required)
1900+
* @param projectId Project UUID. (required)
19011901
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
19021902
*/
19031903
public CompletableFuture<ApiResponse<Void>> deleteProjectWithHttpInfoAsync(String projectId) {
@@ -2251,7 +2251,7 @@ public CompletableFuture<ApiResponse<CaseResponse>> getCaseWithHttpInfoAsync(Str
22512251
*
22522252
* <p>See {@link #getProjectWithHttpInfo}.
22532253
*
2254-
* @param projectId Project UUID (required)
2254+
* @param projectId Project UUID. (required)
22552255
* @return ProjectResponse
22562256
* @throws ApiException if fails to make API call
22572257
*/
@@ -2264,7 +2264,7 @@ public ProjectResponse getProject(String projectId) throws ApiException {
22642264
*
22652265
* <p>See {@link #getProjectWithHttpInfoAsync}.
22662266
*
2267-
* @param projectId Project UUID (required)
2267+
* @param projectId Project UUID. (required)
22682268
* @return CompletableFuture&lt;ProjectResponse&gt;
22692269
*/
22702270
public CompletableFuture<ProjectResponse> getProjectAsync(String projectId) {
@@ -2278,7 +2278,7 @@ public CompletableFuture<ProjectResponse> getProjectAsync(String projectId) {
22782278
/**
22792279
* Get the details of a project by <code>project_id</code>.
22802280
*
2281-
* @param projectId Project UUID (required)
2281+
* @param projectId Project UUID. (required)
22822282
* @return ApiResponse&lt;ProjectResponse&gt;
22832283
* @throws ApiException if fails to make API call
22842284
* @http.response.details
@@ -2333,7 +2333,7 @@ public ApiResponse<ProjectResponse> getProjectWithHttpInfo(String projectId) thr
23332333
*
23342334
* <p>See {@link #getProjectWithHttpInfo}.
23352335
*
2336-
* @param projectId Project UUID (required)
2336+
* @param projectId Project UUID. (required)
23372337
* @return CompletableFuture&lt;ApiResponse&lt;ProjectResponse&gt;&gt;
23382338
*/
23392339
public CompletableFuture<ApiResponse<ProjectResponse>> getProjectWithHttpInfoAsync(
@@ -4738,8 +4738,8 @@ public CompletableFuture<ApiResponse<CaseResponse>> updatePriorityWithHttpInfoAs
47384738
*
47394739
* <p>See {@link #updateProjectWithHttpInfo}.
47404740
*
4741-
* @param projectId Project UUID (required)
4742-
* @param body Project payload (required)
4741+
* @param projectId Project UUID. (required)
4742+
* @param body Project payload. (required)
47434743
* @return ProjectResponse
47444744
* @throws ApiException if fails to make API call
47454745
*/
@@ -4753,8 +4753,8 @@ public ProjectResponse updateProject(String projectId, ProjectUpdateRequest body
47534753
*
47544754
* <p>See {@link #updateProjectWithHttpInfoAsync}.
47554755
*
4756-
* @param projectId Project UUID (required)
4757-
* @param body Project payload (required)
4756+
* @param projectId Project UUID. (required)
4757+
* @param body Project payload. (required)
47584758
* @return CompletableFuture&lt;ProjectResponse&gt;
47594759
*/
47604760
public CompletableFuture<ProjectResponse> updateProjectAsync(
@@ -4769,8 +4769,8 @@ public CompletableFuture<ProjectResponse> updateProjectAsync(
47694769
/**
47704770
* Update a project.
47714771
*
4772-
* @param projectId Project UUID (required)
4773-
* @param body Project payload (required)
4772+
* @param projectId Project UUID. (required)
4773+
* @param body Project payload. (required)
47744774
* @return ApiResponse&lt;ProjectResponse&gt;
47754775
* @throws ApiException if fails to make API call
47764776
* @http.response.details
@@ -4832,8 +4832,8 @@ public ApiResponse<ProjectResponse> updateProjectWithHttpInfo(
48324832
*
48334833
* <p>See {@link #updateProjectWithHttpInfo}.
48344834
*
4835-
* @param projectId Project UUID (required)
4836-
* @param body Project payload (required)
4835+
* @param projectId Project UUID. (required)
4836+
* @param body Project payload. (required)
48374837
* @return CompletableFuture&lt;ApiResponse&lt;ProjectResponse&gt;&gt;
48384838
*/
48394839
public CompletableFuture<ApiResponse<ProjectResponse>> updateProjectWithHttpInfoAsync(

src/main/java/com/datadog/api/client/v2/api/TeamsApi.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3211,6 +3211,7 @@ public CompletableFuture<TeamSyncResponse> getTeamSyncAsync(
32113211
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
32123212
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
32133213
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
3214+
* <tr><td> 404 </td><td> Team sync configurations not found </td><td> - </td></tr>
32143215
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
32153216
* </table>
32163217
*/
@@ -5018,16 +5019,13 @@ public CompletableFuture<Void> syncTeamsAsync(TeamSyncRequest body) {
50185019
}
50195020

50205021
/**
5021-
* This endpoint configures synchronization between your existing Datadog teams and GitHub teams
5022-
* by matching their names. It evaluates all current Datadog teams and compares them against teams
5023-
* in the GitHub organization connected to your Datadog account, based on Datadog Team handle and
5024-
* GitHub Team slug (lowercased and kebab-cased).
5022+
* This endpoint attempts to link your existing Datadog teams with GitHub teams by matching their
5023+
* names. It evaluates all current Datadog teams and compares them against teams in the GitHub
5024+
* organization connected to your Datadog account, based on Datadog Team handle and GitHub Team
5025+
* slug (lowercased and kebab-cased).
50255026
*
50265027
* <p>This operation is read-only on the GitHub side, no teams will be modified or created.
50275028
*
5028-
* <p>Optionally, provide <code>selection_state</code> to limit synchronization to specific teams
5029-
* or organizations and their subtrees, instead of syncing all teams.
5030-
*
50315029
* <p><a href="https://docs.datadoghq.com/integrations/github/">A GitHub organization must be
50325030
* connected to your Datadog account</a>, and the GitHub App integrated with Datadog must have the
50335031
* <code>Members Read</code> permission. Matching is performed by comparing the Datadog team
@@ -5043,7 +5041,6 @@ public CompletableFuture<Void> syncTeamsAsync(TeamSyncRequest body) {
50435041
* <caption>Response details</caption>
50445042
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
50455043
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
5046-
* <tr><td> 204 </td><td> No Content </td><td> - </td></tr>
50475044
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
50485045
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
50495046
* <tr><td> 500 </td><td> Internal Server Error - Unexpected error during linking. </td><td> - </td></tr>

src/main/java/com/datadog/api/client/v2/model/Argument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/** */
20+
/** A named argument for a custom static analysis rule. */
2121
@JsonPropertyOrder({Argument.JSON_PROPERTY_DESCRIPTION, Argument.JSON_PROPERTY_NAME})
2222
@jakarta.annotation.Generated(
2323
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")

src/main/java/com/datadog/api/client/v2/model/AssignSeatsUserRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818

19-
/** */
19+
/** The request body for assigning seats to users for a product code. */
2020
@JsonPropertyOrder({AssignSeatsUserRequest.JSON_PROPERTY_DATA})
2121
@jakarta.annotation.Generated(
2222
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,7 +32,7 @@ public AssignSeatsUserRequest data(AssignSeatsUserRequestData data) {
3232
}
3333

3434
/**
35-
* Getdata
35+
* The request data object containing attributes for assigning seats to users.
3636
*
3737
* @return data
3838
*/

src/main/java/com/datadog/api/client/v2/model/AssignSeatsUserRequestData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/** */
20+
/** The request data object containing attributes for assigning seats to users. */
2121
@JsonPropertyOrder({
2222
AssignSeatsUserRequestData.JSON_PROPERTY_ATTRIBUTES,
2323
AssignSeatsUserRequestData.JSON_PROPERTY_ID,
@@ -56,7 +56,7 @@ public AssignSeatsUserRequestData attributes(AssignSeatsUserRequestDataAttribute
5656
}
5757

5858
/**
59-
* Getattributes
59+
* Attributes specifying the product and users to whom seats will be assigned.
6060
*
6161
* @return attributes
6262
*/

src/main/java/com/datadog/api/client/v2/model/AssignSeatsUserRequestDataAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.util.Map;
2020
import java.util.Objects;
2121

22-
/** */
22+
/** Attributes specifying the product and users to whom seats will be assigned. */
2323
@JsonPropertyOrder({
2424
AssignSeatsUserRequestDataAttributes.JSON_PROPERTY_PRODUCT_CODE,
2525
AssignSeatsUserRequestDataAttributes.JSON_PROPERTY_USER_UUIDS

src/main/java/com/datadog/api/client/v2/model/AssignSeatsUserResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818

19-
/** */
19+
/** The response body returned after successfully assigning seats to users. */
2020
@JsonPropertyOrder({AssignSeatsUserResponse.JSON_PROPERTY_DATA})
2121
@jakarta.annotation.Generated(
2222
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,7 +32,7 @@ public AssignSeatsUserResponse data(AssignSeatsUserResponseData data) {
3232
}
3333

3434
/**
35-
* Getdata
35+
* The response data object containing attributes of the seat assignment result.
3636
*
3737
* @return data
3838
*/

src/main/java/com/datadog/api/client/v2/model/AssignSeatsUserResponseData.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818

19-
/** */
19+
/** The response data object containing attributes of the seat assignment result. */
2020
@JsonPropertyOrder({
2121
AssignSeatsUserResponseData.JSON_PROPERTY_ATTRIBUTES,
2222
AssignSeatsUserResponseData.JSON_PROPERTY_ID,
@@ -42,7 +42,8 @@ public AssignSeatsUserResponseData attributes(AssignSeatsUserResponseDataAttribu
4242
}
4343

4444
/**
45-
* Getattributes
45+
* Attributes of the assign seats response, including the list of users assigned and the product
46+
* code.
4647
*
4748
* @return attributes
4849
*/

0 commit comments

Comments
 (0)