Skip to content

Commit

Permalink
Regenerate client from commit 5ef419de of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 20, 2024
1 parent a17fa49 commit 78de1fe
Show file tree
Hide file tree
Showing 58 changed files with 1,019 additions and 750 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-20 12:21:56.548581",
"spec_repo_commit": "7e467650"
"regenerated": "2024-02-20 19:02:50.038339",
"spec_repo_commit": "5ef419de"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-20 12:21:56.563229",
"spec_repo_commit": "7e467650"
"regenerated": "2024-02-20 19:02:50.054420",
"spec_repo_commit": "5ef419de"
}
}
}
32 changes: 15 additions & 17 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22766,7 +22766,7 @@ paths:
- cases_read
summary: Search cases
tags:
- Cases
- Case Management
x-pagination:
limitParam: page[size]
pageOffsetParam: page[offset]
Expand Down Expand Up @@ -22805,7 +22805,7 @@ paths:
- cases_write
summary: Create a case
tags:
- Cases
- Case Management
/api/v2/cases/projects:
get:
description: Get all projects.
Expand Down Expand Up @@ -22834,7 +22834,7 @@ paths:
- cases_read
summary: Get all projects
tags:
- Cases Projects
- Case Management
post:
description: Create a project.
operationId: CreateProject
Expand Down Expand Up @@ -22869,7 +22869,7 @@ paths:
- cases_write
summary: Create a project
tags:
- Cases Projects
- Case Management
/api/v2/cases/projects/{project_id}:
delete:
description: Remove a project using the project's `id`.
Expand All @@ -22896,7 +22896,7 @@ paths:
- cases_write
summary: Remove a project
tags:
- Cases Projects
- Case Management
get:
description: Get the details of a project by `project_id`.
operationId: GetProject
Expand Down Expand Up @@ -22926,7 +22926,7 @@ paths:
- cases_read
summary: Get the details of a project
tags:
- Cases Projects
- Case Management
/api/v2/cases/{case_id}:
get:
description: Get the details of case by `case_id`
Expand Down Expand Up @@ -22957,7 +22957,7 @@ paths:
- cases_read
summary: Get the details of a case
tags:
- Cases
- Case Management
/api/v2/cases/{case_id}/archive:
post:
description: Archive case
Expand Down Expand Up @@ -22995,7 +22995,7 @@ paths:
- cases_write
summary: Archive case
tags:
- Cases
- Case Management
/api/v2/cases/{case_id}/assign:
post:
description: Assign case to a user
Expand Down Expand Up @@ -23033,7 +23033,7 @@ paths:
- cases_write
summary: Assign case
tags:
- Cases
- Case Management
/api/v2/cases/{case_id}/priority:
post:
description: Update case priority
Expand Down Expand Up @@ -23071,7 +23071,7 @@ paths:
- cases_write
summary: Update case priority
tags:
- Cases
- Case Management
/api/v2/cases/{case_id}/status:
post:
description: Update case status
Expand Down Expand Up @@ -23109,7 +23109,7 @@ paths:
- cases_write
summary: Update case status
tags:
- Cases
- Case Management
/api/v2/cases/{case_id}/unarchive:
post:
description: Unarchive case
Expand Down Expand Up @@ -23147,7 +23147,7 @@ paths:
- cases_write
summary: Unarchive case
tags:
- Cases
- Case Management
/api/v2/cases/{case_id}/unassign:
post:
description: Unassign case
Expand Down Expand Up @@ -23185,7 +23185,7 @@ paths:
- cases_write
summary: Unassign case
tags:
- Cases
- Case Management
/api/v2/ci/pipeline:
post:
description: 'Send your pipeline event to your Datadog platform over HTTP. For
Expand Down Expand Up @@ -34532,10 +34532,8 @@ tags:
[Test Visibility in Datadog page](https://docs.datadoghq.com/tests/) for more
information.
name: CI Visibility Tests
- description: View and manage cases within Datadog
name: Cases
- description: View and manage project within Case Management
name: Cases Projects
- description: View and manage cases and project within Case Management
name: Case Management
- description: The Cloud Cost Management API allows you to set up, edit, and delete
Cloud Cost Management accounts for AWS and Azure. See the [Cloud Cost Management
page](https://docs.datadoghq.com/cloud_cost_management/) for more information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.CaseEmpty;
import com.datadog.api.client.v2.model.CaseEmptyRequest;
import com.datadog.api.client.v2.model.CaseResourceType;
Expand All @@ -11,7 +11,7 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesApi apiInstance = new CasesApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

// there is a valid "case" in the system
String CASE_ID = System.getenv("CASE_ID");
Expand All @@ -23,7 +23,7 @@ public static void main(String[] args) {
CaseResponse result = apiInstance.archiveCase(CASE_ID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesApi#archiveCase");
System.err.println("Exception when calling CaseManagementApi#archiveCase");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.CaseAssign;
import com.datadog.api.client.v2.model.CaseAssignAttributes;
import com.datadog.api.client.v2.model.CaseAssignRequest;
Expand All @@ -12,7 +12,7 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesApi apiInstance = new CasesApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

// there is a valid "case" in the system
String CASE_ID = System.getenv("CASE_ID");
Expand All @@ -31,7 +31,7 @@ public static void main(String[] args) {
CaseResponse result = apiInstance.assignCase(CASE_ID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesApi#assignCase");
System.err.println("Exception when calling CaseManagementApi#assignCase");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.CaseCreate;
import com.datadog.api.client.v2.model.CaseCreateAttributes;
import com.datadog.api.client.v2.model.CaseCreateRelationships;
Expand All @@ -21,7 +21,7 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesApi apiInstance = new CasesApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

// there is a valid "user" in the system
String USER_DATA_ID = System.getenv("USER_DATA_ID");
Expand All @@ -33,7 +33,7 @@ public static void main(String[] args) {
.attributes(
new CaseCreateAttributes()
.priority(CasePriority.NOT_DEFINED)
.title("Security breach investigation in 3dcc5b2ebf9bfb8f")
.title("Security breach investigation in 0cfbc5cbc676ee71")
.type(CaseType.STANDARD))
.relationships(
new CaseCreateRelationships()
Expand All @@ -55,7 +55,7 @@ public static void main(String[] args) {
CaseResponse result = apiInstance.createCase(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesApi#createCase");
System.err.println("Exception when calling CaseManagementApi#createCase");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesProjectsApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.ProjectCreate;
import com.datadog.api.client.v2.model.ProjectCreateAttributes;
import com.datadog.api.client.v2.model.ProjectCreateRequest;
Expand All @@ -12,7 +12,7 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

ProjectCreateRequest body =
new ProjectCreateRequest()
Expand All @@ -26,7 +26,7 @@ public static void main(String[] args) {
ProjectResponse result = apiInstance.createProject(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesProjectsApi#createProject");
System.err.println("Exception when calling CaseManagementApi#createProject");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesProjectsApi;
import com.datadog.api.client.v2.api.CaseManagementApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

try {
apiInstance.deleteProject("project_id");
} catch (ApiException e) {
System.err.println("Exception when calling CasesProjectsApi#deleteProject");
System.err.println("Exception when calling CaseManagementApi#deleteProject");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.CaseResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesApi apiInstance = new CasesApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

// there is a valid "case" in the system
String CASE_ID = System.getenv("CASE_ID");
Expand All @@ -17,7 +17,7 @@ public static void main(String[] args) {
CaseResponse result = apiInstance.getCase(CASE_ID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesApi#getCase");
System.err.println("Exception when calling CaseManagementApi#getCase");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesProjectsApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.ProjectResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

try {
ProjectResponse result = apiInstance.getProject("project_id");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesProjectsApi#getProject");
System.err.println("Exception when calling CaseManagementApi#getProject");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesProjectsApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.ProjectsResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesProjectsApi apiInstance = new CasesProjectsApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

try {
ProjectsResponse result = apiInstance.getProjects();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesProjectsApi#getProjects");
System.err.println("Exception when calling CaseManagementApi#getProjects");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CasesApi;
import com.datadog.api.client.v2.api.CaseManagementApi;
import com.datadog.api.client.v2.model.CasesResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CasesApi apiInstance = new CasesApi(defaultClient);
CaseManagementApi apiInstance = new CaseManagementApi(defaultClient);

try {
CasesResponse result = apiInstance.searchCases();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CasesApi#searchCases");
System.err.println("Exception when calling CaseManagementApi#searchCases");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand Down
Loading

0 comments on commit 78de1fe

Please sign in to comment.