From 6407a9431df5f77ffc3c11adb7c2c394bea40cc1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 14 Jun 2023 09:54:48 +0000 Subject: [PATCH] Regenerate client from commit e0974b9b of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 148 +++++++++--------- .../client/v2/api/SecurityMonitoringApi.java | 21 ++- ...gsErrorItem.java => JSONAPIErrorItem.java} | 26 +-- ...esponse.java => JSONAPIErrorResponse.java} | 30 ++-- ...te_API_key_returns_Forbidden_response.json | 2 +- .../Validate_API_key_returns_OK_response.json | 2 +- ...te_Scanning_Group_returns_OK_response.json | 2 +- ...ing_Rule_returns_Bad_Request_response.json | 4 +- ...ate_Scanning_Rule_returns_OK_response.json | 4 +- ...ete_Scanning_Rule_returns_OK_response.json | 4 +- ...plication_returns_No_Content_response.json | 2 +- ...a_RUM_application_returns_OK_response.json | 2 +- ...mission_to_a_role_returns_OK_response.json | 2 +- ...t_Scanning_Groups_returns_OK_response.json | 6 +- ..._RUM_applications_returns_OK_response.json | 2 +- ...ssions_for_a_role_returns_OK_response.json | 2 +- .../List_permissions_returns_OK_response.json | 2 +- ...r_Groups_returns_Bad_Request_response.json | 4 +- .../Reorder_Groups_returns_OK_response.json | 4 +- ...rmission_returns_Bad_Request_response.json | 2 +- ...permission_returns_Not_found_response.json | 2 +- ...Revoke_permission_returns_OK_response.json | 2 +- ...te_Scanning_Group_returns_OK_response.json | 4 +- ...ing_Rule_returns_Bad_Request_response.json | 4 +- ...ate_Scanning_Rule_returns_OK_response.json | 4 +- ...a_RUM_application_returns_OK_response.json | 2 +- ...returns_Unprocessable_Entity_response.json | 2 +- ...e_a_role_returns_Bad_Request_response.json | 2 +- ...e_a_role_returns_Bad_Role_ID_response.json | 2 +- ...ate_a_role_returns_Not_found_response.json | 2 +- .../v2/Update_a_role_returns_OK_response.json | 2 +- .../client/v2/api/security_monitoring.feature | 16 +- 33 files changed, 168 insertions(+), 155 deletions(-) rename src/main/java/com/datadog/api/client/v2/model/{FindingsErrorItem.java => JSONAPIErrorItem.java} (81%) rename src/main/java/com/datadog/api/client/v2/model/{FindingsErrorResponse.java => JSONAPIErrorResponse.java} (71%) diff --git a/.apigentools-info b/.apigentools-info index 435ff1c499d..ee8da3e5595 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6f7ec021e7e..231cd373de8 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: @@ -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. @@ -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: @@ -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. @@ -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: [] @@ -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: [] @@ -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: [] diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index 796645f2b85..ee1046ab8b7 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -1227,10 +1227,10 @@ public CompletableFuture getFindingAsync( * Response details * Status Code Description Response Headers * 200 OK - - * 400 Bad Request - - * 403 Forbidden - - * 404 Not Found - - * 429 Too many requests - + * 400 Bad Request: The server cannot process the request due to invalid syntax in the request. - + * 403 Forbidden: Access denied - + * 404 Not Found: The requested finding cannot be found. - + * 429 Too many requests: The rate limit set by the API has been exceeded. - * */ public ApiResponse getFindingWithHttpInfo( @@ -2068,6 +2068,10 @@ public PaginationIterable listFindingsWithPagination( * operator, add the operator after the equal sign: * filter[evaluation_changed_at]=>=1678809373257. * + *

Query 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. + * *

Response

* *

The response includes an array of finding objects, pagination metadata, and a count of items @@ -2092,10 +2096,10 @@ public PaginationIterable listFindingsWithPagination( * Response details * Status Code Description Response Headers * 200 OK - - * 400 Bad Request - - * 403 Forbidden - - * 404 Not Found - - * 429 Too many requests - + * 400 Bad Request: The server cannot process the request due to invalid syntax in the request. - + * 403 Forbidden: Access denied - + * 404 Not Found: The requested finding cannot be found. - + * 429 Too many requests: The rate limit set by the API has been exceeded. - * */ public ApiResponse listFindingsWithHttpInfo( @@ -3158,6 +3162,7 @@ public CompletableFuture updateFindingAsync( * Status Code Description Response Headers * 200 OK - * 400 Bad Request: The server cannot process the request due to invalid syntax in the request. - + * 403 Forbidden: Access denied - * 404 Not Found: The requested finding cannot be found. - * 409 Resource Conflict: The finding has already been muted or unmuted within the last 60 seconds. - * 422 Invalid Request: The server understands the request syntax but cannot process it due to invalid data. - diff --git a/src/main/java/com/datadog/api/client/v2/model/FindingsErrorItem.java b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java similarity index 81% rename from src/main/java/com/datadog/api/client/v2/model/FindingsErrorItem.java rename to src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java index 9cac7b62d7a..a8911940bf5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FindingsErrorItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorItem.java @@ -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; @@ -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; } @@ -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; } @@ -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; } @@ -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) { @@ -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 @@ -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"); diff --git a/src/main/java/com/datadog/api/client/v2/model/FindingsErrorResponse.java b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java similarity index 71% rename from src/main/java/com/datadog/api/client/v2/model/FindingsErrorResponse.java rename to src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java index 5ef7868dd77..2c314e49134 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FindingsErrorResponse.java +++ b/src/main/java/com/datadog/api/client/v2/model/JSONAPIErrorResponse.java @@ -16,31 +16,31 @@ import java.util.Objects; /** API error response. */ -@JsonPropertyOrder({FindingsErrorResponse.JSON_PROPERTY_ERRORS}) +@JsonPropertyOrder({JSONAPIErrorResponse.JSON_PROPERTY_ERRORS}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class FindingsErrorResponse { +public class JSONAPIErrorResponse { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ERRORS = "errors"; - private List errors = new ArrayList<>(); + private List errors = new ArrayList<>(); - public FindingsErrorResponse() {} + public JSONAPIErrorResponse() {} @JsonCreator - public FindingsErrorResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_ERRORS) List errors) { + public JSONAPIErrorResponse( + @JsonProperty(required = true, value = JSON_PROPERTY_ERRORS) List errors) { this.errors = errors; } - public FindingsErrorResponse errors(List errors) { + public JSONAPIErrorResponse errors(List errors) { this.errors = errors; - for (FindingsErrorItem item : errors) { + for (JSONAPIErrorItem item : errors) { this.unparsed |= item.unparsed; } return this; } - public FindingsErrorResponse addErrorsItem(FindingsErrorItem errorsItem) { + public JSONAPIErrorResponse addErrorsItem(JSONAPIErrorItem errorsItem) { this.errors.add(errorsItem); this.unparsed |= errorsItem.unparsed; return this; @@ -53,15 +53,15 @@ public FindingsErrorResponse addErrorsItem(FindingsErrorItem errorsItem) { */ @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getErrors() { + public List getErrors() { return errors; } - public void setErrors(List errors) { + public void setErrors(List errors) { this.errors = errors; } - /** Return true if this FindingsErrorResponse object is equal to o. */ + /** Return true if this JSONAPIErrorResponse object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -70,8 +70,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FindingsErrorResponse findingsErrorResponse = (FindingsErrorResponse) o; - return Objects.equals(this.errors, findingsErrorResponse.errors); + JSONAPIErrorResponse jsonapiErrorResponse = (JSONAPIErrorResponse) o; + return Objects.equals(this.errors, jsonapiErrorResponse.errors); } @Override @@ -82,7 +82,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FindingsErrorResponse {\n"); + sb.append("class JSONAPIErrorResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json index 907a2641363..1489fb9e00e 100644 --- a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json +++ b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_Forbidden_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f83caea-c405-97df-c554-ee2d9f9e4f02" + "id": "3f83caea-c405-97df-c554-ee2d9f9e4f01" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json index d03bf9ca97e..45e484f0b48 100644 --- a/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Validate_API_key_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f83caea-c405-97df-c554-ee2d9f9e4f01" + "id": "3f83caea-c405-97df-c554-ee2d9f9e4f02" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json index acedc012d64..4f55fd48470 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Group_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7a" + "id": "01611a93-5e74-0630-3c51-f707c3b51e80" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json index 52af42b6bb5..75696feb97f 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e81" + "id": "01611a93-5e74-0630-3c51-f707c3b51e79" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15f" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed159" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json index 0168d0442ae..908cab25f26 100644 --- a/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7c" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7e" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15b" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15d" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json index 2236d2e23a5..94195cc3fa6 100644 --- a/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_Scanning_Rule_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7b" + "id": "01611a93-5e74-0630-3c51-f707c3b51e82" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15a" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed160" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Delete_a_RUM_application_returns_No_Content_response.json b/src/test/resources/cassettes/features/v2/Delete_a_RUM_application_returns_No_Content_response.json index 99ef53d9ce7..22c45d1ce03 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_RUM_application_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_RUM_application_returns_No_Content_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "74945625-c01a-a598-e538-65a53ceb0685" + "id": "74945625-c01a-a598-e538-65a53ceb0688" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Get_a_RUM_application_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_RUM_application_returns_OK_response.json index 135cc1ef131..9aead012302 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_RUM_application_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_RUM_application_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "74945625-c01a-a598-e538-65a53ceb0688" + "id": "74945625-c01a-a598-e538-65a53ceb0686" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json index feb6f26376a..7bc9e82cb8d 100644 --- a/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Grant_permission_to_a_role_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892170" + "id": "ab2c08c1-60c7-9278-3246-d650bb892174" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json index aef010d0da5..dd4f788d328 100644 --- a/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_Scanning_Groups_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7e" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7a" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15d" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15a" }, { "httpRequest": { @@ -79,7 +79,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7f" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7b" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_all_the_RUM_applications_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_all_the_RUM_applications_returns_OK_response.json index b77c52ec7fd..5c70f34f720 100644 --- a/src/test/resources/cassettes/features/v2/List_all_the_RUM_applications_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_all_the_RUM_applications_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "74945625-c01a-a598-e538-65a53ceb0687" + "id": "74945625-c01a-a598-e538-65a53ceb0689" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json index 66b5649b3b7..7d3c6535ff1 100644 --- a/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_permissions_for_a_role_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892172" + "id": "ab2c08c1-60c7-9278-3246-d650bb892175" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json b/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json index 7c020bbd2c5..8b5185d00c4 100644 --- a/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/List_permissions_returns_OK_response.json @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216e" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json index fccadae11ee..adf37d2a1f1 100644 --- a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_Bad_Request_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e79" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7f" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed159" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json index 06155248802..bef78152d63 100644 --- a/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Reorder_Groups_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e78" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7c" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed158" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15b" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Bad_Request_response.json index 26fc7553875..b838117ca4b 100644 --- a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Bad_Request_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892175" + "id": "ab2c08c1-60c7-9278-3246-d650bb892172" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json index fb7dfecaa5c..246f6016cf0 100644 --- a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json +++ b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_Not_found_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892174" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216e" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json index ef0345587d6..3d0ff2153be 100644 --- a/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Revoke_permission_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216f" + "id": "ab2c08c1-60c7-9278-3246-d650bb892171" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json index 9f4bc20b64f..9f17ccd407a 100644 --- a/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Scanning_Group_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e80" + "id": "01611a93-5e74-0630-3c51-f707c3b51e7d" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15e" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json index db418d57e9f..d75053c9fd1 100644 --- a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_Bad_Request_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e7d" + "id": "01611a93-5e74-0630-3c51-f707c3b51e78" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15c" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed158" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json index 65fa0acf37c..152c30485ef 100644 --- a/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_Scanning_Rule_returns_OK_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "01611a93-5e74-0630-3c51-f707c3b51e82" + "id": "01611a93-5e74-0630-3c51-f707c3b51e81" }, { "httpRequest": { @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "33fa4a39-57ef-afdd-007a-0db82f7ed160" + "id": "33fa4a39-57ef-afdd-007a-0db82f7ed15f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_OK_response.json index 12efdbc7fd6..df86c6c9def 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_OK_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "74945625-c01a-a598-e538-65a53ceb0686" + "id": "74945625-c01a-a598-e538-65a53ceb0685" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_Unprocessable_Entity_response.json b/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_Unprocessable_Entity_response.json index a65071b2d07..4d1a473cd6b 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_Unprocessable_Entity_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_RUM_application_returns_Unprocessable_Entity_response.json @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "74945625-c01a-a598-e538-65a53ceb0689" + "id": "74945625-c01a-a598-e538-65a53ceb0687" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json index 73305cd59ef..1722bd3d627 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Request_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892171" + "id": "ab2c08c1-60c7-9278-3246-d650bb892170" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json index cda844130b2..8dfccd844be 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Bad_Role_ID_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb892173" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216c" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json index f5af311afeb..a79813863cc 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_Not_found_response.json @@ -23,7 +23,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216d" + "id": "ab2c08c1-60c7-9278-3246-d650bb89216f" }, { "httpRequest": { diff --git a/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json index 3e8008f2657..56f57e28636 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_role_returns_OK_response.json @@ -53,7 +53,7 @@ "timeToLive": { "unlimited": true }, - "id": "ab2c08c1-60c7-9278-3246-d650bb89216c" + "id": "ab2c08c1-60c7-9278-3246-d650bb892173" }, { "httpRequest": { diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index cdbcb18dffc..c8c8357f4eb 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -199,20 +199,20 @@ Feature: Security Monitoring And the response "id" has the same value as "cloud_configuration_rule.id" @generated @skip @team:DataDog/cloud-security-posture-management - Scenario: Get a finding returns "Bad Request" response + Scenario: Get a finding returns "Bad Request: The server cannot process the request due to invalid syntax in the request." response Given operation "GetFinding" enabled And new "GetFinding" request And request contains "finding_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 400 Bad Request + Then the response status is 400 Bad Request: The server cannot process the request due to invalid syntax in the request. @generated @skip @team:DataDog/cloud-security-posture-management - Scenario: Get a finding returns "Not Found" response + Scenario: Get a finding returns "Not Found: The requested finding cannot be found." response Given operation "GetFinding" enabled And new "GetFinding" request And request contains "finding_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 404 Not Found + Then the response status is 404 Not Found: The requested finding cannot be found. @replay-only @team:DataDog/cloud-security-posture-management Scenario: Get a finding returns "OK" response @@ -325,18 +325,18 @@ Feature: Security Monitoring And the response "data" has item with field "attributes.is_builtin" with value true @generated @skip @team:DataDog/cloud-security-posture-management - Scenario: List findings returns "Bad Request" response + Scenario: List findings returns "Bad Request: The server cannot process the request due to invalid syntax in the request." response Given operation "ListFindings" enabled And new "ListFindings" request When the request is sent - Then the response status is 400 Bad Request + Then the response status is 400 Bad Request: The server cannot process the request due to invalid syntax in the request. @generated @skip @team:DataDog/cloud-security-posture-management - Scenario: List findings returns "Not Found" response + Scenario: List findings returns "Not Found: The requested finding cannot be found." response Given operation "ListFindings" enabled And new "ListFindings" request When the request is sent - Then the response status is 404 Not Found + Then the response status is 404 Not Found: The requested finding cannot be found. @replay-only @team:DataDog/cloud-security-posture-management Scenario: List findings returns "OK" response