Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4",
"regenerated": "2023-06-14 07:20:49.586787",
"spec_repo_commit": "87ef2d8d"
"regenerated": "2023-06-14 09:53:23.033804",
"spec_repo_commit": "e0974b9b"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-14 07:20:49.600305",
"spec_repo_commit": "87ef2d8d"
"regenerated": "2023-06-14 09:53:23.046929",
"spec_repo_commit": "e0974b9b"
}
}
}
148 changes: 78 additions & 70 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,31 @@ components:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Conflict
FindingsBadRequestResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: 'Bad Request: The server cannot process the request due to invalid
syntax in the request.'
FindingsForbiddenResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: 'Forbidden: Access denied'
FindingsNotFoundResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: 'Not Found: The requested finding cannot be found.'
FindingsTooManyRequestsResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: 'Too many requests: The rate limit set by the API has been exceeded.'
ForbiddenResponse:
content:
application/json:
Expand Down Expand Up @@ -4520,34 +4545,6 @@ components:
type: string
x-enum-varnames:
- FINDING
FindingsErrorItem:
description: API error response body
properties:
detail:
description: A human-readable explanation specific to this occurrence of
the error.
example: attribute "muted" is required
type: string
status:
description: Status code of the response.
example: '400'
type: string
title:
description: Short human-readable summary of the error.
example: Bad Request
type: string
type: object
FindingsErrorResponse:
description: API error response.
properties:
errors:
description: A list of errors.
items:
$ref: '#/components/schemas/FindingsErrorItem'
type: array
required:
- errors
type: object
FormulaLimit:
description: Message for specifying limits to the number of values returned
by a query.
Expand Down Expand Up @@ -6839,6 +6836,34 @@ components:
type: string
type: array
type: object
JSONAPIErrorItem:
description: API error response body
properties:
detail:
description: A human-readable explanation specific to this occurrence of
the error.
example: Missing required attribute in body
type: string
status:
description: Status code of the response.
example: '400'
type: string
title:
description: Short human-readable summary of the error.
example: Bad Request
type: string
type: object
JSONAPIErrorResponse:
description: API error response.
properties:
errors:
description: A list of errors.
items:
$ref: '#/components/schemas/JSONAPIErrorItem'
type: array
required:
- errors
type: object
JiraIntegrationMetadata:
description: Incident integration metadata for the Jira integration.
properties:
Expand Down Expand Up @@ -20715,13 +20740,16 @@ paths:
can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*`
to filter for any non-AWS resources.\n\nThe operator must come after the equal
sign. For example, to filter with the `>=` operator, add the operator after
the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.\n\n### Response\n\nThe
response includes an array of finding objects, pagination metadata, and a
count of items that match the query.\n\nEach finding object contains the following:\n\n-
The finding ID that can be used in a `GetFinding` request to retrieve the
full finding details.\n- Core attributes, including status, evaluation, high-level
resource details, muted state, and rule details.\n- `evaluation_changed_at`
and `resource_discovery_date` time stamps.\n- An array of associated tags.\n"
the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.\n\nQuery
parameters must be only among the documented ones and with values of correct
types. Duplicated query parameters (e.g. `filter[status]=low&filter[status]=info`)
are not allowed.\n\n### Response\n\nThe response includes an array of finding
objects, pagination metadata, and a count of items that match the query.\n\nEach
finding object contains the following:\n\n- The finding ID that can be used
in a `GetFinding` request to retrieve the full finding details.\n- Core attributes,
including status, evaluation, high-level resource details, muted state, and
rule details.\n- `evaluation_changed_at` and `resource_discovery_date` time
stamps.\n- An array of associated tags.\n"
operationId: ListFindings
parameters:
- description: Limit the number of findings returned. Must be <= 1000.
Expand Down Expand Up @@ -20821,17 +20849,13 @@ paths:
$ref: '#/components/schemas/ListFindingsResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
$ref: '#/components/responses/FindingsBadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
$ref: '#/components/responses/FindingsForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
$ref: '#/components/responses/FindingsNotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
$ref: '#/components/responses/FindingsTooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
Expand Down Expand Up @@ -20876,17 +20900,13 @@ paths:
$ref: '#/components/schemas/GetFindingResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
$ref: '#/components/responses/FindingsBadRequestResponse'
'403':
$ref: '#/components/responses/ForbiddenResponse'
$ref: '#/components/responses/FindingsForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
$ref: '#/components/responses/FindingsNotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
$ref: '#/components/responses/FindingsTooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
Expand Down Expand Up @@ -20934,39 +20954,27 @@ paths:
$ref: '#/components/schemas/MuteFindingResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/FindingsErrorResponse'
description: 'Bad Request: The server cannot process the request due to
invalid syntax in the request.'
$ref: '#/components/responses/FindingsBadRequestResponse'
'403':
$ref: '#/components/responses/FindingsForbiddenResponse'
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/FindingsErrorResponse'
description: 'Not Found: The requested finding cannot be found.'
$ref: '#/components/responses/FindingsNotFoundResponse'
'409':
content:
application/json:
schema:
$ref: '#/components/schemas/FindingsErrorResponse'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: 'Resource Conflict: The finding has already been muted or unmuted
within the last 60 seconds.'
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/FindingsErrorResponse'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: 'Invalid Request: The server understands the request syntax
but cannot process it due to invalid data.'
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/FindingsErrorResponse'
description: 'Too many requests: The rate limit set by the API has been
exceeded.'
$ref: '#/components/responses/FindingsTooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1227,10 +1227,10 @@ public CompletableFuture<GetFindingResponse> getFindingAsync(
* <caption>Response details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* <tr><td> 400 </td><td> Bad Request: The server cannot process the request due to invalid syntax in the request. </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden: Access denied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Not Found: The requested finding cannot be found. </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests: The rate limit set by the API has been exceeded. </td><td> - </td></tr>
* </table>
*/
public ApiResponse<GetFindingResponse> getFindingWithHttpInfo(
Expand Down Expand Up @@ -2068,6 +2068,10 @@ public PaginationIterable<Finding> listFindingsWithPagination(
* </code> operator, add the operator after the equal sign: <code>
* filter[evaluation_changed_at]=&gt;=1678809373257</code>.
*
* <p>Query parameters must be only among the documented ones and with values of correct types.
* Duplicated query parameters (e.g. <code>filter[status]=low&amp;filter[status]=info</code>) are
* not allowed.
*
* <h3>Response</h3>
*
* <p>The response includes an array of finding objects, pagination metadata, and a count of items
Expand All @@ -2092,10 +2096,10 @@ public PaginationIterable<Finding> listFindingsWithPagination(
* <caption>Response details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* <tr><td> 400 </td><td> Bad Request: The server cannot process the request due to invalid syntax in the request. </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden: Access denied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Not Found: The requested finding cannot be found. </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests: The rate limit set by the API has been exceeded. </td><td> - </td></tr>
* </table>
*/
public ApiResponse<ListFindingsResponse> listFindingsWithHttpInfo(
Expand Down Expand Up @@ -3158,6 +3162,7 @@ public CompletableFuture<MuteFindingResponse> updateFindingAsync(
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 400 </td><td> Bad Request: The server cannot process the request due to invalid syntax in the request. </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden: Access denied </td><td> - </td></tr>
* <tr><td> 404 </td><td> Not Found: The requested finding cannot be found. </td><td> - </td></tr>
* <tr><td> 409 </td><td> Resource Conflict: The finding has already been muted or unmuted within the last 60 seconds. </td><td> - </td></tr>
* <tr><td> 422 </td><td> Invalid Request: The server understands the request syntax but cannot process it due to invalid data. </td><td> - </td></tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

/** API error response body */
@JsonPropertyOrder({
FindingsErrorItem.JSON_PROPERTY_DETAIL,
FindingsErrorItem.JSON_PROPERTY_STATUS,
FindingsErrorItem.JSON_PROPERTY_TITLE
JSONAPIErrorItem.JSON_PROPERTY_DETAIL,
JSONAPIErrorItem.JSON_PROPERTY_STATUS,
JSONAPIErrorItem.JSON_PROPERTY_TITLE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class FindingsErrorItem {
public class JSONAPIErrorItem {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_DETAIL = "detail";
private String detail;
Expand All @@ -31,7 +31,7 @@ public class FindingsErrorItem {
public static final String JSON_PROPERTY_TITLE = "title";
private String title;

public FindingsErrorItem detail(String detail) {
public JSONAPIErrorItem detail(String detail) {
this.detail = detail;
return this;
}
Expand All @@ -52,7 +52,7 @@ public void setDetail(String detail) {
this.detail = detail;
}

public FindingsErrorItem status(String status) {
public JSONAPIErrorItem status(String status) {
this.status = status;
return this;
}
Expand All @@ -73,7 +73,7 @@ public void setStatus(String status) {
this.status = status;
}

public FindingsErrorItem title(String title) {
public JSONAPIErrorItem title(String title) {
this.title = title;
return this;
}
Expand All @@ -94,7 +94,7 @@ public void setTitle(String title) {
this.title = title;
}

/** Return true if this FindingsErrorItem object is equal to o. */
/** Return true if this JSONAPIErrorItem object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -103,10 +103,10 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
FindingsErrorItem findingsErrorItem = (FindingsErrorItem) o;
return Objects.equals(this.detail, findingsErrorItem.detail)
&& Objects.equals(this.status, findingsErrorItem.status)
&& Objects.equals(this.title, findingsErrorItem.title);
JSONAPIErrorItem jsonapiErrorItem = (JSONAPIErrorItem) o;
return Objects.equals(this.detail, jsonapiErrorItem.detail)
&& Objects.equals(this.status, jsonapiErrorItem.status)
&& Objects.equals(this.title, jsonapiErrorItem.title);
}

@Override
Expand All @@ -117,7 +117,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FindingsErrorItem {\n");
sb.append("class JSONAPIErrorItem {\n");
sb.append(" detail: ").append(toIndentedString(detail)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
Expand Down
Loading